mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-10 06:23:13 +09:00
Additional XSS protection related to #1457
This commit is contained in:
1 parent
24bcaea66c
commit
ddaec1c5ac
1 file changed
+1
-1
+1
-1
@@ -3383,7 +3383,7 @@ function sanitize_search_string($string) {
|
||||
* @returns string - the sanitized uri
|
||||
*/
|
||||
function sanitize_uri($uri) {
|
||||
static $drop_char_match = array('^', '$', '<', '>', '`', '\'', '"', '|', '+', '[', ']', '{', '}', ';', '!');
|
||||
static $drop_char_match = array('^', '$', '<', '>', '`', "'", '"', '|', '+', '[', ']', '{', '}', ';', '!', '(', ')');
|
||||
static $drop_char_replace = array( '', '', '', '', '', '', '', '', '', '', '', '', '', '', '');
|
||||
|
||||
return str_replace($drop_char_match, $drop_char_replace, strip_tags(urldecode($uri)));
|
||||
|
||||
Reference in new issue
Block a user