Alexander Nicolaysen =?UTF-8?Q?S=C3=B8rnes=20?=: screenshots.php: Prevent use of undefined input variable

Alexander Nicolaysen Sørnes asornes at winehq.org
Sun Jan 12 08:57:18 CST 2014


Module: appdb
Branch: master
Commit: 56ca22a8d4ede8c417ffb29e4cdba02b3ed2fca7
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=56ca22a8d4ede8c417ffb29e4cdba02b3ed2fca7

Author: Alexander Nicolaysen Sørnes <alexsornes at 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")




More information about the wine-cvs mailing list