- #39362: Fix code warnings in filter.module

4.7.x
Steven Wittens 2005-11-30 00:12:23 +00:00
parent f4799d1ce9
commit 0ff2db93dd
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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