The URI you submitted has disallowed characters

前端 未结 3 1154
挽巷
挽巷 2021-02-03 10:18

I have a code igniter project, and I wanted to try debugging it using Zend Studio. WHen I start debugging, I immediately run ino

\"The URI you submitted has disallowed c

3条回答
  •  再見小時候
    2021-02-03 11:09

    If using an old version of CodeIgniter and PHP 5.4 you have to modify

    if ( ! preg_match("|^[" . preg_quote($this->config->item('permitted_uri_chars')) . "]+$|i", $str)) {
    

    into

    if (FALSE === preg_match("|^[" . preg_quote($this->config->item('permitted_uri_chars')) . "]+$|i", $str)) {
    

    in /system/libraries/URI.php

提交回复
热议问题