[pLog-svn] r1776 - plog/branches/plog-1.0.1/class/net

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Thu Apr 7 16:29:52 GMT 2005


Author: jondaley
Date: 2005-04-07 16:29:51 +0000 (Thu, 07 Apr 2005)
New Revision: 1776

Modified:
   plog/branches/plog-1.0.1/class/net/prettyrequestparser.class.php
Log:
fixes http://bugs.plogworld.net/view.php?id=385, removes trailing slash

Modified: plog/branches/plog-1.0.1/class/net/prettyrequestparser.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/net/prettyrequestparser.class.php	2005-04-07 13:14:08 UTC (rev 1775)
+++ plog/branches/plog-1.0.1/class/net/prettyrequestparser.class.php	2005-04-07 16:29:51 UTC (rev 1776)
@@ -11,7 +11,12 @@
 
     	function PrettyRequestParser( $function, $path_info )
         {
-        	$this->_path_info = $path_info;
+            $len = strlen($path_info);
+            if($len && $path_info[$len-1] == '/')
+               $this->_path_info = substr($path_info, 0, -1);
+            else
+               $this->_path_info = $path_info;
+
             $this->_function  = $function;
         }
 




More information about the pLog-svn mailing list