Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
Codeigniter permitted_uri_chars clean from value of url

i wanna change url parameters values if has special characters from url. For this i customised filter_uri method in MY_URI core.

class MY_URI extends CI_URI {

function __construct()
{
    parent::__construct();
}


/**
 * Filter URI
 *
 * Filters segments for malicious characters.
 *
 * @param   string  $str
 * @return  void
 */
public function filter_uri(&$str)
{

        if ( ! empty($str) && ! empty($this->_permitted_uri_chars) && ! preg_match('/^['.$this->_permitted_uri_chars.']+$/i'.(UTF8_ENABLED ? 'u' : ''), $str))
        {
         // What i must write here ?
        }
}
}
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!