mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
2013-09-18 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_modules.php: Module name checking for invalid characters added at creation time. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8780 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ba7cc0bd9f
commit
3a65f2e45b
@ -1,3 +1,8 @@
|
|||||||
|
2013-09-18 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* include/functions_modules.php: Module name checking
|
||||||
|
for invalid characters added at creation time.
|
||||||
|
|
||||||
2013-09-16 Vanessa Gil <vanessa.gil@artica.es>
|
2013-09-16 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
* include/languages/ar.mo
|
* include/languages/ar.mo
|
||||||
|
@ -400,6 +400,11 @@ function modules_create_agent_module ($id_agent, $name, $values = false, $disabl
|
|||||||
if (empty ($name)) {
|
if (empty ($name)) {
|
||||||
return ERR_INCOMPLETE;
|
return ERR_INCOMPLETE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for non valid characters in module name
|
||||||
|
if (strpbrk(io_safe_output($name), '¡¿÷ºª') !== false) {
|
||||||
|
return ERR_GENERIC;
|
||||||
|
}
|
||||||
|
|
||||||
if (! is_array ($values))
|
if (! is_array ($values))
|
||||||
$values = array ();
|
$values = array ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user