cvs: php-src(PHP_4_3) /sapi/nsapi nsapi.c
| From: | Uwe Schindler | Date: | Tue, 15 Jul 2003 22:19:23 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /sapi/nsapi nsapi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-22585@lists.php.net to get a copy of this message | ||
thetaphi Tue Jul 15 18:19:23 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/sapi/nsapi nsapi.c
Log:
MFH: safe mode fix
Index: php-src/sapi/nsapi/nsapi.c
diff -u php-src/sapi/nsapi/nsapi.c:1.28.2.16 php-src/sapi/nsapi/nsapi.c:1.28.2.17
--- php-src/sapi/nsapi/nsapi.c:1.28.2.16 Tue Jul 15 13:31:03 2003
+++ php-src/sapi/nsapi/nsapi.c Tue Jul 15 18:19:23 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: nsapi.c,v 1.28.2.16 2003/07/15 17:31:03 thetaphi Exp $ */
+/* $Id: nsapi.c,v 1.28.2.17 2003/07/15 22:19:23 thetaphi Exp $ */
/*
* PHP includes
@@ -204,7 +204,7 @@
NULL,
NULL,
PHP_MINFO(nsapi),
- "$Revision: 1.28.2.16 $",
+ "$Revision: 1.28.2.17 $",
STANDARD_MODULE_PROPERTIES
};
/* }}} */
@@ -407,7 +407,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;
@@ -607,7 +607,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);