📜 ⬆️ ⬇️

the bug with the prohibition of the percent symbol is hidden

In earlier versions, there was a bug that did not pass the percent symbol to an address. for encryption is very necessary. but does not work. the solution is here . But this is about the old, although it does not interfere with reading in order to grasp the essence.

I use version 1.6.2. There was the same problem. Do not allow rawurlencode address. Found that bug report. but did not find the desired line in the file. Now this line, and therefore the solution to the problem lies in
/ * Location: ./system/libraries/URI.php * /
on line 189, the solution is the same $ str added to the rawurlencode function

It was
189 if (! Preg_match ("| ^ [". Preg_quote ($ this-> config-> item ('permitted_uri_chars')). "] + $ | I", $ str))
')
has become
189 if (! Preg_match ("| ^ [". Preg_quote ($ this-> config-> item ('permitted_uri_chars')). "] + $ | I", rawurlencode ($ str)))

UPD. I looked at CI 1.6.3 - the same rake.

Source: https://habr.com/ru/post/28273/


All Articles