changeset 503:1ca0de1bb813 draft

bugfix in powerfulproxy
author Nick <nick@somerandomnick.ano>
date Wed, 11 May 2011 05:33:56 +0000
parents 60ece78f8b36
children 83bc7f6e03ae
files doc/www.powerfulproxy.com/public_html/do_it.php
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);