forked from extern/egroupware
"allow ajax calls from classes ending with ajax, as starting with ajax does not conform with naming schema"
This commit is contained in:
parent
ab8a36cede
commit
d85ed846fe
@ -91,7 +91,8 @@
|
||||
$arg0 = ($appName = 'etemplate').'.'.$className.'.'.$functionName;
|
||||
break;
|
||||
}
|
||||
if(substr($className,0,4) != 'ajax' && $arg0 != 'etemplate.etemplate.process_exec' && substr($functionName,0,4) != 'ajax' ||
|
||||
if(substr($className,0,4) != 'ajax' && substr($className,-4) != 'ajax' &&
|
||||
$arg0 != 'etemplate.etemplate.process_exec' && substr($functionName,0,4) != 'ajax' ||
|
||||
!preg_match('/^[A-Za-z0-9_]+\.[A-Za-z0-9_]+\.[A-Za-z0-9_]+$/',$arg0))
|
||||
{
|
||||
// stopped for security reasons
|
||||
|
Loading…
Reference in New Issue
Block a user