Branch: Tag:

2021-04-08

2021-04-08 10:21:58 by 0

Move NOCACHE earlier in auth_failed_file().

3063:      mapping auth_failed_file( RequestID id, string message )   { +  NOCACHE(); +     // Avoid recursion in 401 messages. This could occur if the 401    // messages used files that also cause access denied.    if(id->root_id->misc->generate_auth_failed)
3071:    id->root_id->misc->generate_auth_failed = 1;       string data = "<return code='401' />" + query("ZAuthFailed"); -  NOCACHE(); +     mapping res = Roxen.http_rxml_answer( data, id, 0, "text/html" );    id->root_id->misc->generate_auth_failed = 0;    return res;