Skip to content
Permalink
Browse files

Fixes #5064

Check for $params['url'] to be set before assigning
  • Loading branch information...
MohsenEkhtiari committed Nov 3, 2014
1 parent 77730bb commit 2e2a022c98de922eac2d5c87e55756e4f082f83d
Showing with 5 additions and 1 deletion.
  1. +5 −1 cake/libs/router.php
@@ -1070,7 +1070,11 @@ function queryString($q, $extra = array(), $escape = false) {
function reverse($params) {
$pass = $params['pass'];
$named = $params['named'];
$url = $params['url'];
if (isset($params['url'])) {
$url = $params['url'];
} else {
$url = null;
}
unset(
$params['pass'], $params['named'], $params['paging'], $params['models'], $params['url'], $url['url'],
$params['autoRender'], $params['bare'], $params['requested'], $params['return']

0 comments on commit 2e2a022

Please sign in to comment.
You can’t perform that action at this time.