Ignore request values that are not strings.
An array action or username no longer causes a PHP error.
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ Ordinary web users can: write article
|
||||
|
||||
$action = NULL;
|
||||
if (isset($_POST['action'])) {
|
||||
$action = strtolower($_POST['action']);
|
||||
$action = is_string($_POST['action']) ? strtolower($_POST['action']) : NULL;
|
||||
// We can trigger only choose and edit via GET variables.
|
||||
} else if (isset($_GET['action'])) {
|
||||
if ($_GET['action'] == 'choose') {
|
||||
|
||||
Reference in New Issue
Block a user