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 0a040e2134
commit 530e0c0541

View File

@ -74,7 +74,10 @@ if ($userservice->isLoggedOn() && sizeof($_FILES) > 0 && $_FILES['userfile']['si
$att = preg_split('/\s*=\s*/s', $attribute, 2);
$attrTitle = $att[0];
$attrVal = eregi_replace('"', '"', preg_replace('/([\'"]?)(.*)\1/', '$2', $att[1]));
$attrVal = str_replace(
'"', '"',
preg_replace('/([\'"]?)(.*)\1/', '$2', $att[1])
);
switch ($attrTitle) {
case "HREF":