get rid of deprecated eregi function and fix replacement
This commit is contained in:
parent
943d149e31
commit
326bca9731
@ -74,7 +74,10 @@ if ($userservice->isLoggedOn() && sizeof($_FILES) > 0 && $_FILES['userfile']['si
|
|||||||
$att = preg_split('/\s*=\s*/s', $attribute, 2);
|
$att = preg_split('/\s*=\s*/s', $attribute, 2);
|
||||||
$attrTitle = $att[0];
|
$attrTitle = $att[0];
|
||||||
|
|
||||||
$attrVal = eregi_replace('"', '"', preg_replace('/([\'"]?)(.*)\1/', '$2', $att[1]));
|
$attrVal = str_replace(
|
||||||
|
'"', '"',
|
||||||
|
preg_replace('/([\'"]?)(.*)\1/', '$2', $att[1])
|
||||||
|
);
|
||||||
|
|
||||||
switch ($attrTitle) {
|
switch ($attrTitle) {
|
||||||
case "HREF":
|
case "HREF":
|
||||||
|
Loading…
Reference in New Issue
Block a user