// Blocklayered: Fix bug with urlrewrite

This commit is contained in:
mDeflotte
2012-03-29 15:25:02 +00:00
parent 29eb25facc
commit c4947ceb7d
4 changed files with 81 additions and 35 deletions

View File

@@ -591,7 +591,7 @@ class FrontControllerCore extends Controller
$matchUrl = (($this->ssl && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$matchUrl = rawurldecode($matchUrl);
if (!preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', $matchUrl))
if (!preg_match('/^'.Tools::pRegexp(rawurldecode($canonicalURL), '/').'([&?].*)?$/', $matchUrl))
{
$params = array();
$excludedKey = array('isolang', 'id_lang', 'controller', 'fc');