--- mod/mgd_apache.c Fri Jul 14 13:21:32 2000
+++ mod/mgd_apache.c.136 Fri Jul 14 15:33:59 2000
@@ -3,11 +3,12 @@
int mgd_get_basic_auth_pw(request_rec * r, const char **usr, const char **pw)
{
const char *auth_line = ap_table_get(r->headers_in,
+ r->proxyreq
#if APACHE_RELEASE >= 10310000
- r->proxyreq == STD_PROXY
- ? "Proxy-Authorization" :
+ == STD_PROXY
#endif
- "Authorization");
+ ? "Proxy-Authorization" : "Authorization");
+
const char *t;
if (!auth_line)
@@ -30,7 +31,12 @@
while (*auth_line == ' ' || *auth_line == '\t')
auth_line++;
+#if APACHE_RELEASE >= 10309000
t = ap_pbase64decode(r->pool, auth_line);
+#else
+ t = ap_uudecode(r->pool, auth_line);
+#endif
+
/* Note that this allocation has to be made from r->connection->pool
* because it has the lifetime of the connection. The other allocations
* are temporary and can be tossed away any time.
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]