Index: branches/5.2.x/core/kernel/managers/rewrite_url_processor.php =================================================================== diff -u -r16513 -r16802 --- branches/5.2.x/core/kernel/managers/rewrite_url_processor.php (.../rewrite_url_processor.php) (revision 16513) +++ branches/5.2.x/core/kernel/managers/rewrite_url_processor.php (.../rewrite_url_processor.php) (revision 16802) @@ -1,6 +1,6 @@ Application->GetVar('_mod_rw_url_'); + if ( !is_string($url) ) { + $url = ''; + } + if ( $url ) { $this->_redirectToDefaultUrlEnding($url); $url = $this->_removeUrlEnding($url); Index: branches/5.2.x/core/kernel/utility/http_query.php =================================================================== diff -u -r16782 -r16802 --- branches/5.2.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 16782) +++ branches/5.2.x/core/kernel/utility/http_query.php (.../http_query.php) (revision 16802) @@ -1,6 +1,6 @@ Get('_mod_rw_url_'); + if ( !is_string($rewrite_url) ) { + $rewrite_url = ''; + } + if ( $this->Application->RewriteURLs() || $rewrite_url ) { // maybe call onafterconfigread here @@ -746,7 +750,9 @@ public function isEmptyUrl() { if ( $this->Application->RewriteURLs() ) { - return !$this->Get('_mod_rw_url_'); + $url = $this->Get('_mod_rw_url_'); + + return !is_string($url) || !$url; } return !count($this->Get);