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
8ac5c4c59b
commit
e5ef147fa8
|
@ -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>
|
||||
|
||||
* include/languages/ar.mo
|
||||
|
|
|
@ -400,6 +400,11 @@ function modules_create_agent_module ($id_agent, $name, $values = false, $disabl
|
|||
if (empty ($name)) {
|
||||
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))
|
||||
$values = array ();
|
||||
|
|
Loading…
Reference in New Issue