From 0ff2db93ddcf7d4e514a427fc8cea41dd5718c49 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Wed, 30 Nov 2005 00:12:23 +0000 Subject: - #39362: Fix code warnings in filter.module --- modules/filter.module | 5 ++--- modules/filter/filter.module | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/filter.module b/modules/filter.module index 2ee9f1743..280f53a21 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -1092,8 +1092,7 @@ function filter_xss($string, $format) { <[^>]*.(>|$) # a string that starts with a <, up until the > or the end of the string | # or > # just a > - )%x - ', '_filter_xss_split', $string); + )%x', '_filter_xss_split', $string); } /** @@ -1114,7 +1113,7 @@ function _filter_xss_split($m) { return; } - $string = &$m[1]; + $string = $m[1]; if (substr($string, 0, 1) != '<') { // We matched a lone ">" character diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 2ee9f1743..280f53a21 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -1092,8 +1092,7 @@ function filter_xss($string, $format) { <[^>]*.(>|$) # a string that starts with a <, up until the > or the end of the string | # or > # just a > - )%x - ', '_filter_xss_split', $string); + )%x', '_filter_xss_split', $string); } /** @@ -1114,7 +1113,7 @@ function _filter_xss_split($m) { return; } - $string = &$m[1]; + $string = $m[1]; if (substr($string, 0, 1) != '<') { // We matched a lone ">" character -- cgit v1.2.3