mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Fix for multi-language domain key detection.
This commit is contained in:
@@ -440,13 +440,20 @@ class logConsolidate
|
|||||||
{
|
{
|
||||||
$pageDisallow = "cache|file|eself|admin";
|
$pageDisallow = "cache|file|eself|admin";
|
||||||
$tagRemove = "(\\\)|(\s)|(\')|(\")|(eself)|( )|(\.php)|(\.html)";
|
$tagRemove = "(\\\)|(\s)|(\')|(\")|(eself)|( )|(\.php)|(\.html)";
|
||||||
// $tagRemove2 = "(\\\)|(\s)|(\')|(\")|(eself)|( )";
|
|
||||||
|
|
||||||
// preg_match("#/(.*?)(\?|$)(.*)#si", $url, $match);
|
// preg_match("#/(.*?)(\?|$)(.*)#si", $url, $match);
|
||||||
// $match[1] = isset($match[1]) ? $match[1] : '';
|
// $match[1] = isset($match[1]) ? $match[1] : '';
|
||||||
// $pageName = substr($match[1], (strrpos($match[1], "/")+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 = urldecode($pageName);
|
||||||
|
|
||||||
$pageName = preg_replace("/".$tagRemove."/si", "", $pageName);
|
$pageName = preg_replace("/".$tagRemove."/si", "", $pageName);
|
||||||
|
Reference in New Issue
Block a user