1.2.x Coding problem

mason X

New Member
May 8, 2019
25
2
3
28
Hii, here I want to ask a question,
I use top ranking,

But my player name is not all English characters.
If it is another character, click link to jump 404.
I observed that the reason is that the link php is handled as garbled. How can I solve it?

look screen222.png

33.png



Click the English link and they are normal.
333.png
 

Mon

Administrator
Developer
Nov 8, 2018
201
69
28
At the moment WebEngine is not coded to handle those kinds of characters in the url. You can try disabling that by allowing all types of special characters to be used in the url, however that might pose as a security risk.

You will need to allow all types of character in the main .htaccess:
https://github.com/lautaroangelico/WebEngine/blob/master/.htaccess

Also you would need to remove the AlphaNumeric check in the profiles class:
https://github.com/lautaroangelico/WebEngine/blob/master/includes/classes/class.profiles.php#L56
 

mason X

New Member
May 8, 2019
25
2
3
28
At the moment WebEngine is not coded to handle those kinds of characters in the url. You can try disabling that by allowing all types of special characters to be used in the url, however that might pose as a security risk.

You will need to allow all types of character in the main .htaccess:
https://github.com/lautaroangelico/WebEngine/blob/master/.htaccess

Also you would need to remove the AlphaNumeric check in the profiles class:
https://github.com/lautaroangelico/WebEngine/blob/master/includes/classes/class.profiles.php#L56
There are a lot of security risks allowed by .htaccess.
I think all site definition character sets are a prerequisite.
 

mason X

New Member
May 8, 2019
25
2
3
28
I am thinking of a solution, whether you can predefine urlencode() and then stitch it to the url.
 

mason X

New Member
May 8, 2019
25
2
3
28
create an .htaccess in the /templates/ folder with the following code:

Code:
RewriteEngine off
Ggood,but Depending on the result, some image files in other directories cannot be loaded.
Maybe there are other files that can't be loaded, just don't know
QQ截图20190511193631.png