$isACP = $originIsACP = RequestHandler::getInstance()->isACPRequest();
$isRaw = false;
$appendSession = true;
+ $encodeTitle = false;
if (isset($parameters['application'])) {
$abbreviation = $parameters['application'];
unset($parameters['application']);
}
unset($parameters['forceFrontend']);
}
+ if (isset($parameters['encodeTitle'])) {
+ $encodeTitle = $parameters['encodeTitle'];
+ unset($parameters['encodeTitle']);
+ }
// remove anchor before parsing
if (($pos = strpos($url, '#')) !== false) {
if (isset($parameters['title'])) {
// remove illegal characters
$parameters['title'] = trim($this->titleRegex->replace($parameters['title'], '-'), '-');
+ // encode title
+ if ($encodeTitle) $parameters['title'] = rawurlencode($parameters['title']);
}
$parameters['controller'] = $controller;