cvs: php-src /sapi/nsapi nsapi.c
| From: | Uwe Schindler | Date: | Tue, 15 Jul 2003 22:19:00 +0000 |
| Subject: | cvs: php-src /sapi/nsapi nsapi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-22584@lists.php.net to get a copy of this message | ||
thetaphi Tue Jul 15 18:19:00 2003 EDT
Modified files:
/php-src/sapi/nsapi nsapi.c
Log:
safe mode fix
Index: php-src/sapi/nsapi/nsapi.c
diff -u php-src/sapi/nsapi/nsapi.c:1.50 php-src/sapi/nsapi/nsapi.c:1.51
--- php-src/sapi/nsapi/nsapi.c:1.50 Tue Jul 15 13:30:33 2003
+++ php-src/sapi/nsapi/nsapi.c Tue Jul 15 18:19:00 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: nsapi.c,v 1.50 2003/07/15 17:30:33 thetaphi Exp $ */
+/* $Id: nsapi.c,v 1.51 2003/07/15 22:19:00 thetaphi Exp $ */
/*
* PHP includes
@@ -199,7 +199,7 @@
NULL,
NULL,
PHP_MINFO(nsapi),
- "$Revision: 1.50 $",
+ "$Revision: 1.51 $",
STANDARD_MODULE_PROPERTIES
};
/* }}} */
@@ -402,7 +402,7 @@
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;
@@ -602,7 +602,7 @@
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);