Mercurial > hg > anonet-resdb
comparison doc/www.powerfulproxy.com/public_html/do_it.php @ 942:a929c6303a71 draft
bugfix in powerfulproxy
author | Nick <nick@somerandomnick.ano> |
---|---|
date | Mon, 19 Mar 2012 19:37:51 +0000 |
parents | 2b68d711a063 |
children |
comparison
equal
deleted
inserted
replaced
941:32a0933d1e04 | 942:a929c6303a71 |
---|---|
75 $redirurl = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', $SERVICEURL.str_replace("http://", "http/", "$1"), $cur_header[1]); | 75 $redirurl = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', $SERVICEURL.str_replace("http://", "http/", "$1"), $cur_header[1]); |
76 $redirurl = str_replace(".php/http://", ".php/http/", $redirurl); | 76 $redirurl = str_replace(".php/http://", ".php/http/", $redirurl); |
77 header('Location: '.$redirurl); | 77 header('Location: '.$redirurl); |
78 } | 78 } |
79 } | 79 } |
80 } else { | |
81 if (in_array(strtok($info['content_type'], ';'), $REWRITE_CONTENT_TYPES)) $data = preg_replace(array_keys($REWRITE_PATTERNS), array_values($REWRITE_PATTERNS), $data, -1, $count); | |
82 } | 80 } |
81 if (in_array(strtok($info['content_type'], ';'), $REWRITE_CONTENT_TYPES)) $data = preg_replace(array_keys($REWRITE_PATTERNS), array_values($REWRITE_PATTERNS), $data, -1, $count); | |
83 | 82 |
84 header('Content-Length: '.strlen($data)); | 83 header('Content-Length: '.strlen($data)); |
85 echo $data; | 84 echo $data; |
86 ?> | 85 ?> |