get rid of deprecated eregi function and fix replacement

This commit is contained in:
Christian Weiske 2013-03-18 22:30:12 +01:00
parent 943d149e31
commit 326bca9731

View file

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