WoW-CMS / BlizzCMS

BlizzCMS is a CMS built with CodeIgniter 3 for World of Warcraft emulators.
MIT License
99 stars 88 forks source link

🐛 [Bug Report]: Page not found for page url with Chinese character #111

Open rogical opened 1 year ago

rogical commented 1 year ago

BlizzCMS Version

2.0 beta

Emulator

MaNGOS

PHP Version

PHP 8.1

Operating system

Linux

Web server

Apache

Database

MySQL 8

What happened?

I changed a news title, from english to Chiense character, then the url not able to open.

http://xxxx/news/1/oowow%E5%BC%80%E6%94%BE%E5%85%AC%E6%B5%8B

How can the issue be reproduced?

1 change a news title, add Chiense character 开放公测 2 on home page, click the news title 3 page not found

Screenshots

image

sayghteight commented 1 year ago

This is due to the URL's, it is possible that it is a routing error due to special characters, it will be reviewed but as advice I suggest making the news in English for now.

In config.php you have the following config

Original line $config['permitted_uri_chars'] = '‘a-z 0-9~%.:\_\=+%\&-';

Modified for characters english:

$config['permitted_urichars'] = '‘a-z 0-9~%.:\\=+%\&-áéíóúñü';