summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2003-07-09 22:13:25 +0000
committerDries Buytaert2003-07-09 22:13:25 +0000
commitfb439409277acf6c63ea57cac18a62fc9bf92881 (patch)
tree75d4939be4d7b7dd0b846539be26c2dd5437dd34
parent9a4fe07ae945b20f53c5000f0bf99cc060d258c0 (diff)
- Fixed typo
-rw-r--r--includes/common.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index ca717e5..3ebfa13 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -484,12 +484,13 @@ function xss_check_input_data($data) {
*/
// check strings:
- $match += preg_match("/\Wjavascript\s*:/i", $data);
+ $match = preg_match("/\Wjavascript\s*:/i", $data);
$match += preg_match("/\Wexpression\s*\(/i", $data);
$match += preg_match("/\Walert\s*\(/i", $data);
// check attributes:
- $match = preg_match("/\W(dynsrc|datasrc|data|lowsrc|on[a-z]+)\s*=[^>]+?>/i", $data);
+ $match += preg_match("/\W(dynsrc|datasrc|data|lowsrc|on[a-z]+)\s*=[^>]+?>/i", $data);
+
// check tags:
$match += preg_match("/<\s*(applet|script|object|style|embed|form|blink|meta|html|frame|iframe|layer|ilayer|head|frameset|xml)/i", $data);