diff options
author | Simon McVittie <smcv@debian.org> | 2018-01-08 10:53:32 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2018-01-08 10:56:12 +0000 |
commit | a147f5349d33b27b6eeac3279cba289c952ee835 (patch) | |
tree | 76cb1f3098eebc01f3e067cfc3fca1bd86126b30 /t | |
parent | 48fc7db2f7c174e3ca663e084d9600d0d03f8859 (diff) | |
download | ikiwiki-a147f5349d33b27b6eeac3279cba289c952ee835.tar ikiwiki-a147f5349d33b27b6eeac3279cba289c952ee835.tar.gz |
Don't send relative redirect URLs when behind a reverse proxy
Diffstat (limited to 't')
-rwxr-xr-x | t/relativity.t | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/t/relativity.t b/t/relativity.t index 3fd55375a..1dda19687 100755 --- a/t/relativity.t +++ b/t/relativity.t @@ -403,10 +403,7 @@ sub test_site6_behind_reverse_proxy { like($bits{cgihref}, qr{^(?:(?:https:)?//example.com)?/cgi-bin/ikiwiki.cgi$}); like($bits{basehref}, qr{^(?:(?:https:)?//example\.com)?/wiki/$}); like($bits{stylehref}, qr{^(?:(?:https:)?//example.com)?/wiki/style.css$}); - TODO: { - local $TODO = "https://ikiwiki.info/bugs/cgi_redirecting_to_non-https_URL/"; check_goto(qr{^https://example\.com/wiki/a/b/c/$}, HTTP_HOST => 'localhost'); - } # previewing a page %bits = parse_cgi_content(run_cgi(is_preview => 1, HTTP_HOST => 'localhost')); |