summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_html.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index 5569309..8f2370f 100644
--- a/it_html.class
+++ b/it_html.class
@@ -444,7 +444,8 @@ function u(/* ... */)
$base = preg_replace(array('|\0|', '/\\\\/'), array('', '/'), $base); # kill null chars, turn \ to /
- $u = parse_url($base);
+ if (!($u = @parse_url($base)))
+ list($u['path'], $u['query']) = explode("?", $base, 2);
# handle scheme, user, password, host
$hostpart =