1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-01 08:24:56 +02:00

Fix for multi-language domain key detection.

This commit is contained in:
Cameron 2016-01-21 14:01:28 -08:00
parent 39aac804df
commit a611fedd96

View File

@ -440,13 +440,20 @@ class logConsolidate
{
$pageDisallow = "cache|file|eself|admin";
$tagRemove = "(\\\)|(\s)|(\')|(\")|(eself)|( )|(\.php)|(\.html)";
// $tagRemove2 = "(\\\)|(\s)|(\')|(\")|(eself)|( )";
// preg_match("#/(.*?)(\?|$)(.*)#si", $url, $match);
// $match[1] = isset($match[1]) ? $match[1] : '';
// $pageName = substr($match[1], (strrpos($match[1], "/")+1));
$pageName = str_replace(SITEURL,'',$url);
if(deftrue('e_DOMAIN'))
{
list($discard,$pageName) = explode(e_DOMAIN.'/',$url); // everything after the domain.
}
else // eg. local setup.
{
$pageName = str_replace(SITEURL,'',$url);
}
$pageName = urldecode($pageName);
$pageName = preg_replace("/".$tagRemove."/si", "", $pageName);