From 673923daf839fda59e4dc1e5f95f5b265a65e802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 8 Feb 2015 19:10:58 +0000 Subject: [PATCH 25/29] [tests] fix undefined index warning in sendfile.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Stefan Bühler git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2985 152afb58-edef-0310-8abb-c4023f1b3aa9 --- tests/docroot/www/sendfile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docroot/www/sendfile.php b/tests/docroot/www/sendfile.php index 0aa8786..e460220 100644 --- a/tests/docroot/www/sendfile.php +++ b/tests/docroot/www/sendfile.php @@ -6,7 +6,7 @@ function pathencode($path) { $val = "X-Sendfile2: " . pathencode(getcwd() . "/index.txt") . " " . $_GET["range"]; -if ($_GET["range2"]) $val .= ", " . pathencode(getcwd() . "/index.txt") . " " . $_GET["range2"]; +if (isset($_GET["range2"])) $val .= ", " . pathencode(getcwd() . "/index.txt") . " " . $_GET["range2"]; header($val); -- 2.4.5