【问题标题】:"The URI you submitted has disallowed characters" in CodeIgniterCodeIgniter 中的“您提交的 URI 包含不允许的字符”
【发布时间】:2018-02-14 17:42:14
【问题描述】:

我收到此错误“您提交的 URI 包含不允许的字符。”当我搜索电子邮件时,我得到了这个错误,其余的东西都很好。

我也改变了这两个东西,但没有运气

$config['enable_query_strings'] = True;

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-@\=';

【问题讨论】:

  • 显示url以及url是如何生成的
  • 请注意,“我已经 google 过”通常不被认为是研究的充分证据。读者会很高兴听到您使用过搜索引擎,但有些人会注意到尝试过的研究或您认为可能有帮助的代码可能非常有用。最终,简短的问题在这里做得不好。 Read this very good advice - 它甚至提到了“我搜索过”现象:-)

标签: codeigniter codeigniter-3


【解决方案1】:

改成:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-@\=+()';

【讨论】:

    【解决方案2】:

    改变这个

    $config['enable_query_strings'] = True;
    

     $config['enable_query_strings'] = FALSE;
    

    希望这会对您有所帮助。 仍然出现错误..请发布您的网址及其生成方式。

    【讨论】:

      猜你喜欢
      • 2015-06-29
      • 2015-07-10
      • 2023-03-20
      • 2019-11-17
      • 2018-11-11
      • 1970-01-01
      • 1970-01-01
      • 2021-03-14
      • 1970-01-01
      相关资源
      最近更新 更多