Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Codeigniter允许使用法语uri字符_Php_Codeigniter_Codeigniter 3_Php 7.3 - Fatal编程技术网

Php Codeigniter允许使用法语uri字符

Php Codeigniter允许使用法语uri字符,php,codeigniter,codeigniter-3,php-7.3,Php,Codeigniter,Codeigniter 3,Php 7.3,因此,我有一个不幸的文件管理器应用程序,它通过向api传递文件路径来访问文件。现在我需要支持文件路径和名称可以使用法语字符的场景。因此,url可以如下所示: mysite/api/files/home/e cole%20du%20fromáge 因此,我的配置现在是$config['allowed_uri_chars']='a-z 0-9~%:\-()+èèèèèèèèèèèèèè 这可以工作并允许在我的本地环境中使用字符,但不允许在我的live环境中使用字符,live环境仍然会抛出您提交的UR

因此,我有一个不幸的文件管理器应用程序,它通过向api传递文件路径来访问文件。现在我需要支持文件路径和名称可以使用法语字符的场景。因此,url可以如下所示:

mysite/api/files/home/e cole%20du%20fromáge

因此,我的配置现在是
$config['allowed_uri_chars']='a-z 0-9~%:\-()+èèèèèèèèèèèèèè

这可以工作并允许在我的本地环境中使用字符,但不允许在我的live环境中使用字符,live环境仍然会抛出
您提交的URI不允许使用字符。
错误。因此,在我的环境中,dev和prod之间的一些不同之处正在改变它的工作方式

将配置更改为
$config['allowed_uri_chars']=''
将工作并允许使用这些字符,因此它与这些法语字符特别相关

这会是什么

编辑:


我记得,在法语字符之前,我在列表中添加了
+
,以允许该字符作为有效字符,并且在两种环境中都有效。因此,更改肯定会生效,prod上的配置文件肯定是正确的。

开发和生产通常有不同的配置文件。您是否在两个配置文件中都进行了更改?检查application/config/production/config.php。@Asrar是的,我100%确定更改应用于两个配置文件。