The tag хабр.наполеон worked in Asmbb in nginx
https://board.asm32.info/хабр.наполеон/
But doesn't work with rwasa server setup
The tag хабр.наполеон worked in Asmbb in nginx
https://board.asm32.info/хабр.наполеон/
But doesn't work with rwasa server setup
ganuonglachanh The tag хабр.наполеон worked in Asmbb in nginx
https://board.asm32.info/хабр.наполеон/
But doesn't work with rwasa server setup
That is because nginx correctly encodes the unicode URLs with percent encoding.
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?...
I will see what can be done about this problem.
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.
johnfound 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.
Thanks johnfound!
Hi johnfound
Do you know any fix has been done in rwasa? I could try patching rwasa if you show me some hints
Thank you!
ganuonglachanh Hi johnfound
Do you know any fix has been done in rwasa? I could try patching rwasa if you show me some hints
Thank you!
Unfortunately, I was not able to contact Jeff Marrison, the author of RWASA. Will try again a little bit later. Sorry for the delay.
ganuonglachanh Hi johnfound
Do you know any fix has been done in rwasa? I could try patching rwasa if you show me some hints
Thank you!
ganuonglachanh 我觉得你可以尝试下。 I think you can try it.
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.
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.
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. 😀
The bug is in the file url.inc
in the main directory of the HeavyThing library.
I will attach both - the diff file and the fixed source file.
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.
Regards
Thanks you johnfound
I can confirm it worked in my Rwasa build, will look in url$decode and url$decode_path function to understand your cool patch.
Really appreciate your help!
ganuonglachanh Thanks you johnfound
I can confirm it worked in my Rwasa build, will look in url$decode and url$decode_path function to understand your cool patch.
Really appreciate your help!
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.