phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: /sitemgr/sitemgr-site relocate.php,1.2,1.2.2.1


From: Patrick Walsh <address@hidden>
Subject: [Phpgroupware-cvs] CVS: /sitemgr/sitemgr-site relocate.php,1.2,1.2.2.1
Date: Thu, 03 Oct 2002 21:01:31 -0400

Update of /cvsroot/phpgroupware//sitemgr/sitemgr-site
In directory subversions:/tmp/cvs-serv21601

Modified Files:
      Tag: Version-0_9_14-branch
        relocate.php 
Log Message:
Fixed problem with pretty urls when a get parameter is appended to the uri.


Index: relocate.php
===================================================================
RCS file: /cvsroot/phpgroupware//sitemgr/sitemgr-site/relocate.php,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -r1.2 -r1.2.2.1
*** relocate.php        14 Sep 2002 07:25:21 -0000      1.2
--- relocate.php        4 Oct 2002 01:01:29 -0000       1.2.2.1
***************
*** 72,76 ****
  }
  
! $r = $HTTP_SERVER_VARS["REQUEST_URI"];
  $r_doc = substr($r,strlen($base_script_uri));
  
--- 72,92 ----
  }
  
! //pos stuff is used for stripping get vars from the uri
! $pos = strpos($HTTP_SERVER_VARS['REQUEST_URI'],'?');
! if ($pos === false)
! {
!       $r = $HTTP_SERVER_VARS["REQUEST_URI"];
! }
! else
! { 
!       if ($pos < 1)
!       { 
!               $r = '';
!       }
!       else
!       { 
!               $r = substr($HTTP_SERVER_VARS['REQUEST_URI'],0,$pos-1);
!       }
! }
  $r_doc = substr($r,strlen($base_script_uri));
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]