Skip to content
Snippets Groups Projects
Commit 3d5e07d9 authored by Adrian Lang's avatar Adrian Lang
Browse files

Do not parse URL params in internal links, just pass them through

parent def4baf2
No related branches found
No related tags found
No related merge requests found
......@@ -560,15 +560,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
global $conf;
global $ID;
$params = array();
if (preg_match('/^([^?]*)\?([^?]+)$/', $id, $matches)) {
$id = $matches[1];
preg_match_all('/(?<=[&^])([^=]+)=([^=]*)(?:&|$)/', $matches[2],
$matches, PREG_SET_ORDER);
foreach($matches as &$param) {
$params[$param[1]] = $param[2];
}
$params = '';
$parts = explode('?', $id, 2);
if (count($parts) === 2) {
$id = $parts[0];
$params = $parts[1];
}
// default name is based on $id as given
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment