mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-08 02:43:04 +02:00
Minor change to restrict the value of $mode
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5492 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@ -59,6 +59,8 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Restrict mode input to valid options
|
||||||
|
$mode = ( in_array($mode, array('add', 'edit', 'save', 'delete')) ) ? $mode : '';
|
||||||
|
|
||||||
if( $mode != "" )
|
if( $mode != "" )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user