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:
jsatoh 2013-11-27 04:43:14 +00:00
parent baa2b593ee
commit b1e82c8b28
2 changed files with 6 additions and 1 deletions

View File

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

View File

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