mirror of
https://git.freebsd.org/ports.git
synced 2025-06-29 08:30:37 -04:00
- add a post 5.0.0 patch to fix basic authentication with apache 1.x The major PHP ports overhaul is in its final stage. This commit was anticipated since it fixes a critical security vulnerability.
11 lines
479 B
C
11 lines
479 B
C
--- sapi/apache/mod_php5.c.orig Thu Jul 15 09:29:05 2004
|
|
+++ sapi/apache/mod_php5.c Thu Jul 15 09:30:01 2004
|
|
@@ -485,7 +485,7 @@
|
|
tmp = uudecode(r->pool, authorization);
|
|
SG(request_info).auth_user = NULL;
|
|
tmp_user = getword_nulls_nc(r->pool, &tmp, ':');
|
|
- if (SG(request_info).auth_user) {
|
|
+ if (tmp_user) {
|
|
r->connection->user = pstrdup(r->connection->pool, tmp_user);
|
|
r->connection->ap_auth_type = "Basic";
|
|
SG(request_info).auth_user = estrdup(tmp_user);
|