- #39362: Fix code warnings in filter.module
parent
f4799d1ce9
commit
0ff2db93dd
|
@ -1092,8 +1092,7 @@ function filter_xss($string, $format) {
|
||||||
<[^>]*.(>|$) # a string that starts with a <, up until the > or the end of the string
|
<[^>]*.(>|$) # a string that starts with a <, up until the > or the end of the string
|
||||||
| # or
|
| # or
|
||||||
> # just a >
|
> # just a >
|
||||||
)%x
|
)%x', '_filter_xss_split', $string);
|
||||||
', '_filter_xss_split', $string);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1114,7 +1113,7 @@ function _filter_xss_split($m) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$string = &$m[1];
|
$string = $m[1];
|
||||||
|
|
||||||
if (substr($string, 0, 1) != '<') {
|
if (substr($string, 0, 1) != '<') {
|
||||||
// We matched a lone ">" character
|
// We matched a lone ">" character
|
||||||
|
|
|
@ -1092,8 +1092,7 @@ function filter_xss($string, $format) {
|
||||||
<[^>]*.(>|$) # a string that starts with a <, up until the > or the end of the string
|
<[^>]*.(>|$) # a string that starts with a <, up until the > or the end of the string
|
||||||
| # or
|
| # or
|
||||||
> # just a >
|
> # just a >
|
||||||
)%x
|
)%x', '_filter_xss_split', $string);
|
||||||
', '_filter_xss_split', $string);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1114,7 +1113,7 @@ function _filter_xss_split($m) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$string = &$m[1];
|
$string = $m[1];
|
||||||
|
|
||||||
if (substr($string, 0, 1) != '<') {
|
if (substr($string, 0, 1) != '<') {
|
||||||
// We matched a lone ">" character
|
// We matched a lone ">" character
|
||||||
|
|
Loading…
Reference in New Issue