From 974dd16aeb9fa9f88aa6341e3dd5d068ca1752b7 Mon Sep 17 00:00:00 2001 From: arino Date: Mon, 4 Aug 2003 10:54:19 +0900 Subject: [PATCH] =?utf8?q?path=E3=81=8C=E6=8C=87=E5=AE=9A=E3=81=95?= =?utf8?q?=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E3=81=A8=E3=81=8D?= =?utf8?q?=E3=81=AB=E7=84=A1=E5=8A=B9=E3=81=AA=E3=83=AA=E3=82=AF=E3=82=A8?= =?utf8?q?=E3=82=B9=E3=83=88=E3=82=92=E3=81=97=E3=81=A6=E3=81=97=E3=81=BE?= =?utf8?q?=E3=81=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- proxy.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy.php b/proxy.php index 42a6f87..005d0fb 100644 --- a/proxy.php +++ b/proxy.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: proxy.php,v 1.1 2003/07/27 13:54:58 arino Exp $ +// $Id: proxy.php,v 1.2 2003/08/04 01:54:19 arino Exp $ // /* @@ -29,7 +29,8 @@ function http_request($url,$method='GET',$headers='',$post=array()) $arr['port'] = isset($arr['port']) ? $arr['port'] : 80; $url = $via_proxy ? $arr['scheme'].'://'.$arr['host'].':'.$arr['port'] : ''; - $url .= $arr['path'].$arr['query']; + $url .= isset($arr['path']) ? $arr['path'] : '/'; + $url .= $arr['query']; $query = $method.' '.$url." HTTP/1.0\r\n"; $query .= "Host: ".$arr['host']."\r\n"; -- 2.11.0