From: Christian Weiske Date: Mon, 18 Mar 2013 21:30:12 +0000 (+0100) Subject: get rid of deprecated eregi function and fix replacement X-Git-Tag: v0.98.5~2 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=326bca97316f66a9ec511275e2971a5067c924ab;p=semanticscuttle.git get rid of deprecated eregi function and fix replacement --- diff --git a/www/importNetscape.php b/www/importNetscape.php index a014b95..9a52407 100644 --- a/www/importNetscape.php +++ b/www/importNetscape.php @@ -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":