aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_test/tests/inc/parser/renderer_xhtml.test.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2024-01-17 18:53:46 +0100
committerAndreas Gohr <andi@splitbrain.org>2024-01-17 19:04:39 +0100
commitac56bec8fe6fd490404eea13c205c47f81b471c7 (patch)
tree049be65b35a0c6bad2b1b87d62d5edf0209284e5 /_test/tests/inc/parser/renderer_xhtml.test.php
parentf8dac3dfec171ceff96086d54eb36edf9155bed1 (diff)
downloaddokuwiki-emptydirdefault.tar.gz
dokuwiki-emptydirdefault.zip
fall back to empty (root) dir for base dir detectionemptydirdefault
When a basedir could not be detected, the default previously was '.' resulting in a valid but weird URL (http://example.com/./doku.php). We now default to an empty dir, resulting in a more sensible URL of http://example.com/doku.php This should not matter in real web server setups but will be in effect while testing.
Diffstat (limited to '_test/tests/inc/parser/renderer_xhtml.test.php')
-rw-r--r--_test/tests/inc/parser/renderer_xhtml.test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/_test/tests/inc/parser/renderer_xhtml.test.php b/_test/tests/inc/parser/renderer_xhtml.test.php
index 44fe48854..5d0d50164 100644
--- a/_test/tests/inc/parser/renderer_xhtml.test.php
+++ b/_test/tests/inc/parser/renderer_xhtml.test.php
@@ -269,7 +269,7 @@ class renderer_xhtml_test extends DokuWikiTest {
$this->assertSame('0', $header);
$this->R->internallink($id);
- $expected = '<a href="/./doku.php?id='.$id.'" class="wikilink1" title="'.$id.'" data-wiki-id="blanktest">0</a>';
+ $expected = '<a href="/doku.php?id='.$id.'" class="wikilink1" title="'.$id.'" data-wiki-id="blanktest">0</a>';
$this->assertEquals($expected, trim($this->R->doc));
}
}