perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject [Fwd: [rt.cpan.org #18140] Syntax error with mod_perl and mod_rewrite, Apache::Registry]
Date Mon, 13 Mar 2006 16:58:26 GMT
FYI

-------- Original Message --------
Subject: [rt.cpan.org #18140] Syntax error with mod_perl and mod_rewrite,
Apache::Registry
Date: Mon, 13 Mar 2006 07:06:33 -0500 (EST)
From: Guest via RT <bug-mod_perl@rt.cpan.org>
Reply-To: bug-mod_perl@rt.cpan.org
To: undisclosed-recipients:;
References: <RT-Ticket-18140@rt.cpan.org>


Mon Mar 13 07:06:32 2006: Request 18140 was acted upon.
Transaction: Ticket created by guest
       Queue: mod_perl
     Subject: Syntax error with mod_perl and mod_rewrite, Apache::Registry
       Owner: Nobody
  Requestors: kolya@mail.ru
      Status: new
 Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=18140 >


We use Apache::Registry and mod_rewrite.
We give it url http://host/dir/%3F%09 than we get 500 error: [error]
syntax error at (eval 24) line 1, near "package
Apache::ROOTbf_2ehost_2edomain::bla::bla::_3f_ 9_"\n. There is a space
beetween '_' and '9'.
The bug is in line:
script_name =~ s/([^A-Za-z0-9_\/])/sprintf("_%2x",unpack("C",$1))/eg;
 (line 84). It converts bytes to hex and do not add leading zeroes. We
shoud changethis tile to
script_name =~ s/([^A-Za-z0-9_\/])/sprintf("_%02x",unpack("C",$1))/eg;
This fixes the problem, I think.
Please apply.

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


Mime
View raw message