..:: AsmBB ::..: Problem with unicode tag in rwasa server
<img src="https://board.asm32.info/images/title.svg" alt="Title img">
<h1>AsmBB is ultrafast web forum, written entirely in assembly language. This site is the official support development forum and demo/test installation.</h1>
tag:board.asm32.info,2018-03-06:Thread3112020-06-02T14:07:51Zjohnfound on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post161622020-06-02T14:07:51Z
<blockquote><header>ganuonglachanh</header><p>Thanks you johnfound
</p>
<p>I can confirm it worked in my Rwasa build, will look in url$decode and url$decode_path function to understand your cool patch.
</p>
<p>Really appreciate your help!
</p>
<p><img class="inline" src="/templates/Urban+Sunrise/_images/emoticons/rofl.gif" alt="rofl" />
</p></blockquote>
<p>I am glad it works for you, but still would suggest to update to the official fix, once released. Consider my patch as a quick and dirty hack, because it has been made without full understanding of the RWASA code and dependencies.</p>
johnfoundganuonglachanh on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post161612020-06-02T10:55:42Z
<p>Thanks you johnfound
</p>
<p>I can confirm it worked in my Rwasa build, will look in url$decode and url$decode_path function to understand your cool patch.
</p>
<p>Really appreciate your help!
</p>
<p><img class="inline" src="/templates/Urban+Sunrise/_images/emoticons/rofl.gif" alt="rofl" /> </p>
ganuonglachanh johnfound on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post161602020-06-02T07:12:03Z
<p>OK, I have some news about this issue. At the end I was able to contact with Jeff Marrison. Now he knows about the bug and will probably fix it soon.
</p>
<p>But he mentioned that he is fairly busy these days and the official fix can delay a little. Well, with this corona-chaos in the world it is not so unusual.
</p>
<p>That is why I will post here my fix of the problem. But notice, that I am not so familiar with the RWASA code and this fix can be buggy or even non-secure at all. For example it can make RWASA crash or leak memory in some circumstances. It works on my tests, but may not work for you. Use at your own risk. <span class="emoji"><span>😀</span></span>
</p>
<p>The bug is in the file <code>url.inc</code> in the main directory of the HeavyThing library.
</p>
<p>I will attach both - the diff file and the fixed source file.
</p>
<p>Check it and report the issues. If they are easy to fix, I will fix them. If not, well, will wait for the Jeff's fix.
</p>
<p>Regards
</p>
johnfoundjacky on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post161592020-06-02T04:27:53Z
<blockquote><header>ganuonglachanh</header><p>Hi johnfound
</p>
<p>Do you know any fix has been done in rwasa? I could try patching rwasa if you show me some hints <img class="inline" src="/templates/Urban+Sunrise/_images/emoticons/smile.gif" alt=":-)" />
</p>
<p>Thank you!
</p></blockquote><p>ganuonglachanh
我觉得你可以尝试下。
I think you can try it.</p>
jackyjohnfound on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post161582020-06-01T14:38:29Z
<blockquote><header>ganuonglachanh</header><p>Hi johnfound
</p>
<p>Do you know any fix has been done in rwasa? I could try patching rwasa if you show me some hints <img class="inline" src="/templates/Urban+Sunrise/_images/emoticons/smile.gif" alt=":-)" />
</p>
<p>Thank you!
</p></blockquote>
<p>Unfortunately, I was not able to contact Jeff Marrison, the author of RWASA. Will try again a little bit later. Sorry for the delay.</p>
johnfoundganuonglachanh on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post161572020-06-01T14:20:36Z
<p>Hi johnfound
</p>
<p>Do you know any fix has been done in rwasa? I could try patching rwasa if you show me some hints <img class="inline" src="/templates/Urban+Sunrise/_images/emoticons/smile.gif" alt=":-)" />
</p>
<p>Thank you!</p>
ganuonglachanh ganuonglachanh on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post160832020-03-23T05:20:36Z
<blockquote><header>johnfound</header><p>Well, after some debugging, I have found the problem. It is a bug in rwasa. I will report it and it will be definitely fixed.
</p></blockquote>
<p>Thanks johnfound! <img class="inline" src="/templates/Urban+Sunrise/_images/emoticons/rofl.gif" alt="rofl" /> </p>
ganuonglachanh johnfound on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post160822020-03-22T21:15:25Z
<p>Well, after some debugging, I have found the problem. It is a bug in rwasa. I will report it and it will be definitely fixed.</p>
johnfoundjohnfound on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post160792020-03-22T12:11:42Z
<blockquote><header>ganuonglachanh</header><p>The tag хабр.наполеон worked in Asmbb in nginx
</p>
<p><a href="https://board.asm32.info/хабр.наполеон/">https://board.asm32.info/хабр.наполеон/</a>
</p>
<p>But doesn't work with rwasa server setup <img class="inline" src="/templates/Urban+Sunrise/_images/emoticons/tongue.gif" alt=":-P" />
</p></blockquote>
<p>That is because nginx correctly encodes the unicode URLs with percent encoding.
</p>
<p>RWASA sends them in some non UTF-8 encoding (I am not sure what exactly). Maybe in the encoding the web browser made the request?...
</p>
<p>I will see what can be done about this problem.</p>
johnfoundganuonglachanh on Problem with unicode tag in rwasa servertag:board.asm32.info,2018-03-06:Post160682020-03-22T08:35:44Z
<p>The tag хабр.наполеон worked in Asmbb in nginx
</p>
<p><a href="https://board.asm32.info/хабр.наполеон/">https://board.asm32.info/хабр.наполеон/</a>
</p>
<p>But doesn't work with rwasa server setup <img class="inline" src="/templates/Urban+Sunrise/_images/emoticons/tongue.gif" alt=":-P" /> </p>
ganuonglachanh