for (i=0; i < rc->rq->headers->hsize; i++) {
entry=rc->rq->headers->ht[i];
while (entry) {
- if (!PG(safe_mode) || strcasecmp(entry->param->name, "authorization")) {
+ if (!PG(safe_mode) || strncasecmp(entry->param->name, "authorization", 13)) {
add_assoc_string(return_value, entry->param->name, entry->param->value, 1);
}
entry=entry->next;
for (i=0; i < rc->rq->headers->hsize; i++) {
entry=rc->rq->headers->ht[i];
while (entry) {
- if (!PG(safe_mode) || strcasecmp(entry->param->name, "authorization")) {
+ if (!PG(safe_mode) || strncasecmp(entry->param->name, "authorization", 13)) {
snprintf(buf, NS_BUF_SIZE, "HTTP_%s", entry->param->name);
for(p = buf + 5; *p; p++) {
*p = toupper(*p);