mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +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:
parent
cd887d4414
commit
8ba6a53e3a
@ -59,6 +59,8 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
// Restrict mode input to valid options
|
||||
$mode = ( in_array($mode, array('add', 'edit', 'save', 'delete')) ) ? $mode : '';
|
||||
|
||||
if( $mode != "" )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user