# HG changeset patch # User Nick # Date 1305092036 0 # Node ID 1ca0de1bb8139aaad82cfbc3c3c62e6a11028bb0 # Parent 60ece78f8b364157e70de3f9b9f8ff9145ed1963 bugfix in powerfulproxy diff -r 60ece78f8b36 -r 1ca0de1bb813 doc/www.powerfulproxy.com/public_html/do_it.php --- a/doc/www.powerfulproxy.com/public_html/do_it.php Wed May 11 05:30:41 2011 +0000 +++ b/doc/www.powerfulproxy.com/public_html/do_it.php Wed May 11 05:33:56 2011 +0000 @@ -10,8 +10,9 @@ $proto = array_shift($pall); $host = array_shift($pall); $hostparts = explode('.', $host); -if (ip2long(long2ip($host))===$host) if ($hostparts[0]!='1') die('Bad IP'); -if (!preg_match("/ano|ntwrk$/",array_pop($hostparts))) die('Bad host'); +if (ip2long(long2ip($host))===$host) { + if ($hostparts[0]!='1') die('Bad IP'); +} elseif (!preg_match("/ano|ntwrk$/",array_pop($hostparts))) die('Bad host'); $path = implode('/', $pall); array_pop($pall); $rp = implode('/', $pall);