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:
juanmanuelr 2013-09-18 13:39:29 +00:00
parent 8ac5c4c59b
commit e5ef147fa8
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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 ();