aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2013-03-18 22:30:12 +0100
committerChristian Weiske <cweiske@cweiske.de>2013-03-18 22:30:12 +0100
commit530e0c0541a78bc7b3ede43821371b89e3c2b590 (patch)
tree2af2e2c6c21a321b71cc77b945a99eb7d25c9858 /www
parent0a040e2134178f347bc5ebdb0be281813c1c4e72 (diff)
downloadsemanticscuttle-530e0c0541a78bc7b3ede43821371b89e3c2b590.tar.gz
semanticscuttle-530e0c0541a78bc7b3ede43821371b89e3c2b590.tar.bz2
get rid of deprecated eregi function and fix replacement
Diffstat (limited to 'www')
-rw-r--r--www/importNetscape.php5
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('"', '&quot;', preg_replace('/([\'"]?)(.*)\1/', '$2', $att[1]));
+ $attrVal = str_replace(
+ '&quot;', '"',
+ preg_replace('/([\'"]?)(.*)\1/', '$2', $att[1])
+ );
switch ($attrTitle) {
case "HREF":