[Pkg-mozext-commits] [requestpolicy] 48/257: [tst][IMP] data: http redirection with path

David Prévot taffit at moszumanska.debian.org
Thu Jan 28 03:19:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit c8e31f567723106e9f158294f0f8c7da2cc74b74
Author: Martin Kimmerle <dev at 256k.de>
Date:   Wed Sep 2 08:59:23 2015 +0200

    [tst][IMP] data: http redirection with path
    
    "redirect-http-location-header.php":
    Add the possibility to redirect to a specific path.
---
 tests/content/redirect-http-location-header.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/content/redirect-http-location-header.php b/tests/content/redirect-http-location-header.php
index 93712c9..b97e915 100644
--- a/tests/content/redirect-http-location-header.php
+++ b/tests/content/redirect-http-location-header.php
@@ -1,2 +1,3 @@
 <?php
-  header('Location: http://www.otherdomain.test');
+$path = isset($_GET['path']) ? $_GET['path'] : '';
+header('Location: http://www.otherdomain.test/' . $path);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list