perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Chamas <j...@chamas.com>
Subject Fix for Apache::ASP with Apache 2.4
Date Tue, 20 May 2014 22:19:34 GMT
Hi!

I have a fix for running Apache::ASP under Apache 2.4, at least as is patched 
under Ubuntu and likely other platforms where mod_perl and Apache 2.4 co-exist. 
  We are considering this fix and some other changes for an upcoming Apache::ASP 
2.63 release.

--- lib/Apache/ASP/StateManager.pm	(revision 30)
+++ lib/Apache/ASP/StateManager.pm	(revision 31)
@@ -82,7 +82,8 @@
  	$self->{cookie_path}       = &config($self, 'CookiePath', undef, '/');
  	$self->{cookie_domain}     = &config($self, 'CookieDomain');
  	$self->{paranoid_session}  = &config($self, 'ParanoidSession');
-	$self->{remote_ip}         = $r->connection()->remote_ip();
+	$self->{remote_ip}         = eval { $r->connection()->remote_ip() };   # may 
not exist in Apache 2.4
+	$self->{remote_ip}         ||= eval { $r->connection()->client_ip() }; # 
should exist in Apache 2.4
  	$self->{session_count}     = &config($self, 'SessionCount');

The latest trunk tarball for Apache::ASP can be downloaded from here:

http://sourceforge.net/p/apache-asp/code/HEAD/tarball

General changes for Apache::ASP 2.63 so far include:

$MODULE=Apache::ASP; $VERSION = 2.63; $DATE="2014/05/20"

  + fixed $r->connection()->remote_ip() to use client_ip() access for Apache 2.4

  + Added section ``raw'' to MailErrors.inc to debug POSTs without
    form fields

  - MailErrorsHTML now uses monospaced fonts for errors. Easier on
    the eyes and more informative

  - Added a clumsy regex to avoid header longer than 70 chars

  - removed deprecated "Extra" module references from Makefile.PL and 
Bundle::Apache::ASP::Extra,
    including Apache::Filter, Apache::SSI, Bundle::XML, XML::Sablotron, and 
Tie::TextDir

Regards,

Josh



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message