1
0
Fork 0

fixed rewriting, added further debug infos

Dieser Commit ist enthalten in:
o.pinke 2020-06-08 16:09:59 +02:00
Ursprung e11792f616
Commit d53c559871
4 geänderte Dateien mit 30 neuen und 21 gelöschten Zeilen

Datei anzeigen

@ -27,7 +27,7 @@ if (!defined('CON_FRAMEWORK')) {
die('Illegal call');
}
cInclude('classes', 'contenido/class.articlelanguage.php');
global $_cecRegistry, $cfg, $contenido, $area, $client, $load_client;
/**
* Processes cl-mod-rewrite related job for created new tree.
@ -485,10 +485,14 @@ function mr_buildGeneratedCode($code) {
// remove tinymce single quote entities:
$code = str_replace("'", "'", $code);
$baseUri = cRegistry::getFrontendUrl();
$baseUri = CEC_Hook::execute("Contenido.Frontend.BaseHrefGeneration", $baseUri);
// get base uri
$sBaseUri = $cfgClient[$client]['path']['htmlpath'];
$sBaseUri = CEC_Hook::execute("Contenido.Frontend.BaseHrefGeneration", $sBaseUri);
// CON-1389 modifier /e is deprecated as of PHP 5.5
$code = preg_replace_callback("/([\"|\'|=])upload\/(.?|.+?)([\"|\'|>])/i", function($match) use ($baseUri) {
return stripslashes($match[1] . $baseUri . 'upload/' . $match[2] . $match[3]);
}, $code);
// define some preparations to replace /front_content.php & ./front_content.php
// against front_content.php, because urls should start with front_content.php