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: [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(-) (limited to 'tests/docroot') diff --git a/tests/docroot/www/sendfile.php b/tests/docroot/www/sendfile.php index 0aa8786f..e4602203 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); -- cgit v1.2.1