partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 19ae0819525a27ea277ebe2900e22761cd4116c6
parent 5887f24dc16ca4c285553db9e9a00c366dd91c38
Author: Felicitus <felicitus@felicitus.org>
Date:   Sun, 25 Mar 2012 23:05:29 +0200

Die with "permission denied" if HTTP auth is wanted, but no username is passed.

Diffstat:
Msrc/frontend/index.php | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/frontend/index.php b/src/frontend/index.php @@ -22,7 +22,8 @@ $aParameters["php_version"] = phpversion(); /* HTTP auth */ if (Configuration::getOption("partkeepr.auth.http", false) === true) { if (!isset($_SERVER["PHP_AUTH_USER"])) { - // @todo Redirect to permission denied page + // @todo Redirect to permission denied page + die("Permission denied"); } try {