Module: appdb Branch: master Commit: 56ca22a8d4ede8c417ffb29e4cdba02b3ed2fca7 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=56ca22a8d4ede8c417ffb29e4... Author: Alexander Nicolaysen Sørnes <alexsornes(a)gmail.com> Date: Sun Jan 12 15:17:34 2014 +0100 screenshots.php: Prevent use of undefined input variable --- screenshots.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenshots.php b/screenshots.php index 160eefe..c077cee 100644 --- a/screenshots.php +++ b/screenshots.php @@ -26,7 +26,7 @@ require_once(BASE."include/application.php"); require_once(BASE."include/version.php"); // we issued a command -if($aClean['sCmd']) +if(array_key_exists('sCmd', $aClean) && $aClean['sCmd']) { // process screenshot upload if($aClean['sCmd'] == "screenshot_upload")