mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
ignore keys xss special days
This commit is contained in:
parent
9ddfde1774
commit
1f4de3ee4d
@ -119,7 +119,7 @@ if ($create_special_day) {
|
||||
$values['description'] = (string) get_parameter('description');
|
||||
|
||||
$aviable_description = true;
|
||||
if (preg_match('<script>', $values['description'])) {
|
||||
if (preg_match('/script/i', $values['description'])) {
|
||||
$aviable_description = false;
|
||||
}
|
||||
|
||||
@ -185,7 +185,7 @@ if ($update_special_day) {
|
||||
$id_group_orig = (string) get_parameter('id_group_orig');
|
||||
|
||||
$aviable_description = true;
|
||||
if (preg_match('<script>', $description)) {
|
||||
if (preg_match('/script/i', $description)) {
|
||||
$aviable_description = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user