-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: resdb
action: commit
revision:
path_from:
revision_from: f2cc5f0acce710f9a29baebae2634e3810e7dda9:
path_to:
revision_to:

git.thebackupbox.net

resdb

git://git.thebackupbox.net/resdb

commit f2cc5f0acce710f9a29baebae2634e3810e7dda9
Author: Nick <nick@somerandomnick.ano>
Date:   Wed May 11 05:33:56 2011 +0000

    bugfix in powerfulproxy

diff --git a/doc/www.powerfulproxy.com/public_html/do_it.php b/doc/www.powerfulproxy.com/public_html/do_it.php

index 0a5fedb1660ab3410a0c7bed824090cbcdeb85ba..

index ..acbd235adeee6cf98987b48940c70d8d2ac2bacf 100644

--- a/doc/www.powerfulproxy.com/public_html/do_it.php
+++ b/doc/www.powerfulproxy.com/public_html/do_it.php
@@ -10,8 +10,9 @@ array_shift($pall);
 $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);

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 14:12:37 2024