How I can call setDisabledCFFunction to disable CreateObject(com) or
CreateObject(Java)?


I'm calling sec.setDisabledCFFunction("#di*r#", "createobject(com)");



But I aways get "This function can not be added to the restricted
function
list"


Only CreateObject param works, but it don't disable com and java.


TIA!



adminObj = createObject("component","cfid*e.adminapi.administ rator");

adminObj.login("pass");


// Instantiate the data source object.
sec = createObject("component","cfid*e.adminapi.security ");


testes = sec.getDisabledCFFunctions("#d*ir#");
sec.setDisabledCFFunction("#di*r#", "createobject(com)");


<cfoutput>
<cfdump var="#testes#">
</cfoutput>