mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fix problem reported by Fabio Ciuffani / John Leitch <john@autosectools.com>
This commit is contained in:
parent
11da1388eb
commit
050875995c
@ -67,6 +67,7 @@ if (is_object($cmd))
|
|||||||
// check if requests contains a reasonable looking admin command to be queued
|
// check if requests contains a reasonable looking admin command to be queued
|
||||||
if (!$_REQUEST['uid'] || // no uid
|
if (!$_REQUEST['uid'] || // no uid
|
||||||
!$_REQUEST['type'] || // no command class name
|
!$_REQUEST['type'] || // no command class name
|
||||||
|
!preg_match('/^[a-z0-9_]+$/i', $_REQUEST['type']) || // type is a (autoloadable) class name, prevent inclusion of arbitrary files
|
||||||
!$_REQUEST['creator_email']) // no creator email
|
!$_REQUEST['creator_email']) // no creator email
|
||||||
{
|
{
|
||||||
header("HTTP/1.1 200 Bad format!");
|
header("HTTP/1.1 200 Bad format!");
|
||||||
|
Loading…
Reference in New Issue
Block a user