summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2009-11-18 15:13:10 +0000
committerUrban Müller2009-11-18 15:13:10 +0000
commit4de65e4b0abb98e8cf7603b2cd93855f43d23dd5 (patch)
treeb98bc406fa2dd6e631ceb96922bf7935975796fc
parent65ba5016508204dc5b8dce47bc7a7e88d803bbd1 (diff)
downloaditools-4de65e4b0abb98e8cf7603b2cd93855f43d23dd5.tar.gz
itools-4de65e4b0abb98e8cf7603b2cd93855f43d23dd5.tar.bz2
itools-4de65e4b0abb98e8cf7603b2cd93855f43d23dd5.zip
simple fallback parser
-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 =