• Probleme security with Access Code !

    By ch le 1 decade ago

    Bug: in custom control content_getFiles



    by default this function return the first partial AccessID !

    getDocumentByKey(param.AccessID)



    EX: getDocumentByKey( a ) return the first doc with access code a15d9tz6 !



    Bugfix in content_getFiles :



    var tempDoc:NotesDocument = tempView.getDocumentByKey(param.AccessID,true);

    _dump(param.AccessID);

    if (!tempDoc) {

    context.redirectToPage(&quot;erreur&quot;);<br/>
    

    }

    return tempDoc==null ? null : tempDoc.getUniversalID();