[Solar-svn] Revision 3212
pmjones at solarphp.com
pmjones at solarphp.com
Tue Jun 10 08:12:10 CDT 2008
Solar_Uri: [FIX] In method get(), use trim() and strict inequality to allow for string-zero params and fragments.
Modified: trunk/Solar/Uri.php
===================================================================
--- trunk/Solar/Uri.php 2008-06-10 13:09:46 UTC (rev 3211)
+++ trunk/Solar/Uri.php 2008-06-10 13:12:09 UTC (rev 3212)
@@ -433,9 +433,9 @@
return $uri
. $this->_config['path']
. (empty($this->path) ? '' : $this->_pathEncode($this->path))
- . (trim($this->format) == '' ? '' : '.' . urlencode($this->format))
+ . (trim($this->format) === '' ? '' : '.' . urlencode($this->format))
. (empty($this->query) ? '' : '?' . http_build_query($this->query))
- . (trim($this->fragment) == '' ? '' : '#' . urlencode($this->fragment));
+ . (trim($this->fragment) === '' ? '' : '#' . urlencode($this->fragment));
}
/**
More information about the Solar-svn
mailing list