diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-07 23:13:45 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-29 20:54:40 +0200 |
commit | 779d8a68ffa1b48e61ebf514648aaadaf232b6ca (patch) | |
tree | 6e7ebf092ea26cade5ef825b127ed33d0f819897 /tests/functions | |
parent | f383d4221ce085dc36ef4c04a0a2c7c3f381b108 (diff) | |
download | forums-779d8a68ffa1b48e61ebf514648aaadaf232b6ca.tar forums-779d8a68ffa1b48e61ebf514648aaadaf232b6ca.tar.gz forums-779d8a68ffa1b48e61ebf514648aaadaf232b6ca.tar.bz2 forums-779d8a68ffa1b48e61ebf514648aaadaf232b6ca.tar.xz forums-779d8a68ffa1b48e61ebf514648aaadaf232b6ca.zip |
[ticket/12099] Correctly fix the path when performing AJAX requests
If the current request is a AJAX we need to fix the paths.
We need to get the root path based on the Referer, so we can use
the generated URLs in the template of the Referer. If we do not
generate the relative path based on the Referer, but based on the
currently requested URL, the generated URLs will not point to the
intended locations:
Referer desired URL desired relative root path
memberlist.php faq.php ./
memberlist.php app.php/foo/bar ./
app.php/foo memberlist.php ../
app.php/foo app.php/fox ../
app.php/foo/bar memberlist.php ../../
../page.php memberlist.php ./phpBB/
../sub/page.php memberlist.php ./../phpBB/
PHPBB3-12099
Diffstat (limited to 'tests/functions')
0 files changed, 0 insertions, 0 deletions