You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by jk...@apache.org on 2013/02/20 12:51:02 UTC
svn commit: r1448104 -
/perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h
Author: jkaluza
Date: Wed Feb 20 11:51:01 2013
New Revision: 1448104
URL: http://svn.apache.org/r1448104
Log:
* xs/Apache2/Access/Apache2__Access.h: return 'none' if RequestRec::auth_type
is not set to stay compatible with older mod_perl.
Modified:
perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h
Modified: perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h
URL: http://svn.apache.org/viewvc/perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h?rev=1448104&r1=1448103&r2=1448104&view=diff
==============================================================================
--- perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h (original)
+++ perl/modperl/branches/httpd24/xs/Apache2/Access/Apache2__Access.h Wed Feb 20 11:51:01 2013
@@ -100,11 +100,18 @@ static MP_INLINE
const char *mpxs_Apache2__RequestRec_auth_type(pTHX_ request_rec *r,
char *type)
{
+ const char *ret = NULL;
+
if (type) {
mpxs_insert_auth_cfg(aTHX_ r, "AuthType", type);
}
- return ap_auth_type(r);
+ ret = ap_auth_type(r);
+ if (!ret) {
+ return "none";
+ }
+
+ return ret;
}
static MP_INLINE