mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 14:55:18 -04:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user