if ( ! preg_match( "|^[" .preg_quote($ this ->config->item( 'permitted_uri_chars' )). "]+$|i" , $str)) { ... } * This source code was highlighted with Source Code Highlighter .
if ( ! preg_match( "|^[" .preg_quote($ this ->config->item( 'permitted_uri_chars' )). "]+$|i" , $str)) { ... } * This source code was highlighted with Source Code Highlighter .if ( ! preg_match( "|^[" .preg_quote($ this ->config->item( 'permitted_uri_chars' )). "]+$|i" , $str)) { ... } * This source code was highlighted with Source Code Highlighter .if ( ! preg_match( "|^[" .preg_quote($ this ->config->item( 'permitted_uri_chars' )). "]+$|i" , $str)) { ... } * This source code was highlighted with Source Code Highlighter .
* This source code was highlighted with Source Code Highlighter .
- <? php
 - class MY_URI extends CI_URI
 - {
 - function _filter_uri ($ str)
 - {
 - if ($ str! = '' AND $ this -> config-> item ( 'permitted_uri_chars' )! = '' )
 - {
 - if (! preg_match ( "| ^ [" .preg_quote ($ this -> config-> item ( 'permitted_uri_chars' )). "] + $ | ui" , $ str))
 - {
 - exit ( 'The URI you submitted has disallowed characters.' );
 - }
 - }
 - return $ str;
 - }
 - }
 
Source: https://habr.com/ru/post/40465/
All Articles