diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-04-10 17:01:48 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-04-10 17:01:48 -0700 |
commit | c9edb943f99704a649612afa6ae7825b2e6bc44e (patch) | |
tree | 77f181f0bc9d395cc9907f4ed7d6e9692d473ce2 /modules/gallery/libraries/MY_Input.php | |
parent | 2657d085863782f57279d507c1c2c0a15ccccc24 (diff) |
Fix a bug introduced when we patched the "disallowed global data"
security check. Not sure why the patch worked for some and not for
others, but this should resolve it either way. Fixes ticket #1123.
Diffstat (limited to 'modules/gallery/libraries/MY_Input.php')
-rw-r--r-- | modules/gallery/libraries/MY_Input.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/MY_Input.php b/modules/gallery/libraries/MY_Input.php index 703136c7..1d5949e8 100644 --- a/modules/gallery/libraries/MY_Input.php +++ b/modules/gallery/libraries/MY_Input.php @@ -26,6 +26,6 @@ class Input extends Input_Core { * @return string */ public function clean_input_keys($str) { - return preg_replace('#^[\pL0-9:_.-]++$#uD', '_', $str); + return preg_replace('#[^a-zA-Z0-9:_.-]+#', '_', $str); } } |