Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use APR::Finfo instead of Perls stat() in ModPerl::RegistryCooker
git-svn-id: https://svn.apache.org/repos/asf/perl/modperl/trunk@1451907 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Torsten Förtsch
committed
Mar 2, 2013
1 parent
febe2a4
commit e2ea139
Showing
5 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!perl | ||
|
||
use strict; | ||
use warnings FATAL => 'all'; | ||
|
||
use Apache::Test; | ||
use Apache::TestUtil; | ||
use Apache::TestRequest qw(GET_RC); | ||
|
||
plan tests => 1, need 'mod_alias.c'; | ||
|
||
{ | ||
# this used to result in 500 due to a combination of Perl warning about | ||
# a newline in the filename passed to stat() and our | ||
# use warnings FATAL=>'all' | ||
|
||
t_client_log_error_is_expected(); | ||
my $url = '/registry/file%0dwith%0anl%0d%0aand%0a%0dcr'; | ||
ok t_cmp GET_RC($url), 404, 'URL with \\r and \\n embedded'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters