Now that Squid is sending an explicit '-' for the trailing %DATA parameter
if there were no acl parameters this helper needs to cope with it on
'active mode' session lookups when login/logout are not being performed.
action = -1;
detail_len = (size_t)(lastdetail-detail);
*lastdetail = '\0';
+ } else if (!default_action && strcmp(lastdetail, " -") == 0) {
+ // no action; LOGIN/LOGOUT not supplied
+ // but truncate the '-' %DATA value given by Squid-4 and later
+ detail_len = (size_t)(lastdetail-detail);
+ *lastdetail = '\0';
}
}
if (action == -1) {