Advertisement
Guest User

Disallowed Key Characters

a guest
Oct 1st, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1.  
  2. // File: system/core/input.php
  3. // Line : 728
  4. // Problem with coookie Google analytics
  5. // replace _clean_input_keys function
  6. // Disallowed Key Characters. __utmt_~1
  7.  
  8.  
  9. function _clean_input_keys($str)
  10. {
  11. if ( ! preg_match("/^[a-z0-9:~_\/-]+$/i", $str))
  12. {
  13. exit('Disallowed Key Characters.');
  14. }
  15.  
  16. // Clean UTF-8 if supported
  17. if (UTF8_ENABLED === TRUE)
  18. {
  19. $str = $this->uni->clean_string($str);
  20. }
  21.  
  22. return $str;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement