diff options
author | Michael Hamann <michael@content-space.de> | 2010-03-02 19:00:37 +0100 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2010-03-02 20:08:58 +0100 |
commit | 06368e4dbb72cef5e440312251d11fbaea6242a9 (patch) | |
tree | 3e5942fc0160e0d6fb4a8dea9058585df5c34af9 /_test | |
parent | 7caaf84c91ff684b186dec09e921d319b64ec0e1 (diff) | |
download | rpg-06368e4dbb72cef5e440312251d11fbaea6242a9.tar.gz rpg-06368e4dbb72cef5e440312251d11fbaea6242a9.tar.bz2 |
Fixed testcase and getID - FS#1908 FS#1831 FS#1838
$_SERVER['PATH_INFO'] is used now to determine the page id when using
internal rewriting, in all testcases I've seen so far this variable
was set correctly. There are also a couple of fallbacks if the variable
doesn't exist, $_SERVER['SCRIPT_NAME'] is now preferred instead of
custom path extraction which fails when doku.php is outside the document
root.
Diffstat (limited to '_test')
-rw-r--r-- | _test/cases/inc/pageutils_getid.test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_test/cases/inc/pageutils_getid.test.php b/_test/cases/inc/pageutils_getid.test.php index 14a21cae2..790c869d1 100644 --- a/_test/cases/inc/pageutils_getid.test.php +++ b/_test/cases/inc/pageutils_getid.test.php @@ -76,7 +76,7 @@ class init_getID_test extends UnitTestCase { $_SERVER['SCRIPT_FILENAME'] = '/var/www/vhosts/example.com/htdocs/doku.php'; $_SERVER['SCRIPT_NAME'] = '/doku.php'; $_SERVER['REQUEST_URI'] = '/doku.php/wiki/dokuwiki'; - $_SERVER['PATH_INFO'] = '/test/dokuwiki'; + $_SERVER['PATH_INFO'] = '/wiki/dokuwiki'; $_SERVER['PATH_TRANSLATED'] = '/var/www/vhosts/example.com/htdocs/doku.php'; $_SERVER['PHP_SELF'] = '/doku.php/wiki/dokuwiki'; |