Skip to content

Commit

Permalink
Relative path ".:" does not work (revised) close dokufreaks#95
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 6, 2019
1 parent c16610e commit edf12d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions syntax/archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ function handle($match, $state, $pos, Doku_Handler $handler) {
if ($ns == '') $ns = cleanID($this->getConf('namespace'));
elseif (($ns == '*') || ($ns == ':')) $ns = '';
elseif ($ns == '.') $ns = getNS($ID);
elseif (preg_match('/^\.:/',$ns) == 1){
$ns = getNS($ID) .ltrim($ns,".");
}
else $ns = cleanID($ns);

// daily archive
Expand Down
3 changes: 3 additions & 0 deletions syntax/autoarchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ function handle($match, $state, $pos, Doku_Handler $handler) {
if ($ns == '') $ns = cleanID($this->getConf('namespace'));
elseif (($ns == '*') || ($ns == ':')) $ns = '';
elseif ($ns == '.') $ns = getNS($ID);
elseif (preg_match('/^\.:/',$ns) == 1){
$ns = getNS($ID) .ltrim($ns,".");
}
else $ns = cleanID($ns);

return array($ns, $flags, $refine, $pos);
Expand Down
3 changes: 3 additions & 0 deletions syntax/blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ function handle($match, $state, $pos, Doku_Handler $handler) {
if ($ns == '') $ns = cleanID($this->getConf('namespace'));
elseif (($ns == '*') || ($ns == ':')) $ns = '';
elseif ($ns == '.') $ns = getNS($ID);
elseif (preg_match('/^\.:/',$ns) == 1){
$ns = getNS($ID) .ltrim($ns,".");
}
else $ns = cleanID($ns);

return array($ns, $num, $flags, $refine);
Expand Down

0 comments on commit edf12d0

Please sign in to comment.