CVS update: /cowiki/includes/cowiki/class/util/

[email protected] 11 Aug 2005 04:12:09 -0000
Newsgroups gmane.comp.php.cowiki.cvs
Message-ID <[email protected]>
User: dgorski 
Date: 2005/08/10 21:12:09

Modified:
   cowiki/includes/cowiki/class/util/class.HttpRequest.php

Log:
 Allow query part in an URI while fetching remote content.

File Changes:

Directory: /cowiki/includes/cowiki/class/util/
==============================================

File [changed]: class.HttpRequest.php
Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/util/class.HttpRequest.php?r1=1.29&r2=1.30
Delta lines:  +9 -3
-------------------
--- class.HttpRequest.php	26 May 2005 20:37:30 -0000	1.29
+++ class.HttpRequest.php	11 Aug 2005 04:12:07 -0000	1.30
@@ -2,7 +2,7 @@
 
 /**
  *
- * $Id: class.HttpRequest.php,v 1.29 2005/05/26 20:37:30 dgorski Exp $
+ * $Id: class.HttpRequest.php,v 1.30 2005/08/11 04:12:07 dgorski Exp $
  *
  * This file is part of coWiki. coWiki is free software under the terms of
  * the GNU General Public License (GPL). Read the LICENSE file. If you did
@@ -17,7 +17,7 @@
  * @author      Daniel T. Gorski, <[email protected]>
  * @copyright   (C) Daniel T. Gorski, {@link http://www.develnet.org}
  * @license     http://www.gnu.org/licenses/gpl.html
- * @version     $Revision: 1.29 $
+ * @version     $Revision: 1.30 $
  *
  */
 
@@ -370,7 +370,13 @@
         if ($Registry->get('RUNTIME_HTTP_PROXY_ENABLE')) {
             $aHeader[] = 'GET '.$UriInfo->get('fullUri').' HTTP/1.0';
         } else {
-            $aHeader[] = 'GET '.$UriInfo->get('path').' HTTP/1.0';
+
+            // Query available?
+            $sQuery = $UriInfo->get('query')
+                      ? '?'.$UriInfo->get('query')
+                      : '';
+                      
+            $aHeader[] = 'GET '.$UriInfo->get('path').$sQuery.' HTTP/1.0';
         }
 
         if ($Registry->get('RUNTIME_HTTP_PROXY_ENABLE')) {