diff options
author | Urban Müller | 2009-11-18 15:13:10 +0000 |
---|---|---|
committer | Urban Müller | 2009-11-18 15:13:10 +0000 |
commit | 4de65e4b0abb98e8cf7603b2cd93855f43d23dd5 (patch) | |
tree | b98bc406fa2dd6e631ceb96922bf7935975796fc /it_html.class | |
parent | 65ba5016508204dc5b8dce47bc7a7e88d803bbd1 (diff) | |
download | itools-4de65e4b0abb98e8cf7603b2cd93855f43d23dd5.tar.gz itools-4de65e4b0abb98e8cf7603b2cd93855f43d23dd5.tar.bz2 itools-4de65e4b0abb98e8cf7603b2cd93855f43d23dd5.zip |
simple fallback parser
Diffstat (limited to 'it_html.class')
-rw-r--r-- | it_html.class | 3 |
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 = |