2013-11-27 Junichi Satoh <junichi@rworks.jp>
* include/functions_modules.php: Fixed that some multibyte characters are recognized as invalid characters on module creation. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9135 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
baa2b593ee
commit
b1e82c8b28
|
@ -1,3 +1,8 @@
|
|||
2013-11-27 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* include/functions_modules.php: Fixed that some multibyte characters
|
||||
are recognized as invalid characters on module creation.
|
||||
|
||||
2013-11-26 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* mobile/operation/events.php
|
||||
|
|
|
@ -427,7 +427,7 @@ function modules_create_agent_module ($id_agent, $name, $values = false, $disabl
|
|||
}
|
||||
|
||||
// Check for non valid characters in module name
|
||||
if (strpbrk(io_safe_output($name), '¡¿÷ºª') !== false) {
|
||||
if (mb_ereg_match('[\xc2\xa1\xc2\xbf\xc3\xb7\xc2\xba\xc2\xaa]', io_safe_output($name)) !== false) {
|
||||
return ERR_GENERIC;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue