diff options
author | Christian Weiske <cweiske@cweiske.de> | 2013-03-18 22:30:12 +0100 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2013-03-18 23:06:49 +0100 |
commit | 326bca97316f66a9ec511275e2971a5067c924ab (patch) | |
tree | e720ba9f5ebe0428326a54ce5365e1b78eb8ab9b /www | |
parent | 943d149e31f5774208ce6619d1503d9c89ae72ae (diff) | |
download | semanticscuttle-326bca97316f66a9ec511275e2971a5067c924ab.tar.gz semanticscuttle-326bca97316f66a9ec511275e2971a5067c924ab.tar.bz2 |
get rid of deprecated eregi function and fix replacement
Diffstat (limited to 'www')
-rw-r--r-- | www/importNetscape.php | 5 |
1 files changed, 4 insertions, 1 deletions
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": |