Ignore request values that are not strings.

An array action or username no longer causes a PHP error.
This commit is contained in:
tim
2026-09-26 15:27:51 +02:00
parent be814a3ba5
commit 52f4855850
6 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ Ordinary web users can: write article
*/
if (isset($_POST['action']))
$action = strtolower($_POST['action']);
$action = is_string($_POST['action']) ? strtolower($_POST['action']) : NULL;
else
$action = NULL;