[pLog-svn] r1918 - plog/branches/plog-1.0.1/class/net
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Fri Apr 29 14:49:36 GMT 2005
Author: oscar
Date: 2005-04-29 14:49:36 +0000 (Fri, 29 Apr 2005)
New Revision: 1918
Modified:
plog/branches/plog-1.0.1/class/net/customurlhandler.class.php
Log:
fixed issue 455 (http://bugs.plogworld.net/view.php?id=455)
Modified: plog/branches/plog-1.0.1/class/net/customurlhandler.class.php
===================================================================
--- plog/branches/plog-1.0.1/class/net/customurlhandler.class.php 2005-04-29 13:42:14 UTC (rev 1917)
+++ plog/branches/plog-1.0.1/class/net/customurlhandler.class.php 2005-04-29 14:49:36 UTC (rev 1918)
@@ -79,7 +79,14 @@
{
// decode the string, since it seems that php will not do it for us in this case...
$requestUri = urldecode( $requestUri);
-
+
+ // we should remove anything that comes after a '?' parameter, since we don't want to take
+ // HTTP GET parameters into account
+ if(( $pos = strpos( $requestUri, '?' ))) {
+ // if so, remove everything including the question mark
+ $requestUri = substr( $requestUri, 0, $pos );
+ }
+
// guess which format we're using...
$m = new LinkFormatMatcher( $requestUri, $this->_formats );
$this->_format = $m->identify();
More information about the pLog-svn
mailing list