Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

get rid of deprecated eregi function and fix replacement

  • Loading branch information...
commit 326bca97316f66a9ec511275e2971a5067c924ab 1 parent 943d149
@cweiske authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 www/importNetscape.php
View
5 www/importNetscape.php
@@ -74,7 +74,10 @@
$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":
Please sign in to comment.
Something went wrong with that request. Please try again.