summaryrefslogtreecommitdiff
path: root/www/p5-Text-MultiMarkdown-ApacheHandler/files/patch-lib__Text__MultiMarkdown__ApacheHandler.pm
blob: 51686151b93d1b13151e375791d4af428dbef57b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- ./lib/Text/MultiMarkdown/ApacheHandler.pm.orig	2013-05-06 13:22:18.000000000 -0400
+++ ./lib/Text/MultiMarkdown/ApacheHandler.pm	2013-05-06 13:25:56.000000000 -0400
@@ -16,6 +16,7 @@
 
 our $VERSION = '0.01';
 
+use Apache2::compat;
 use Apache::Constants qw(:common);
 use Apache::File ();
 use Text::MultiMarkdown 'markdown';
@@ -52,7 +53,7 @@
 	return DECLINED unless $r->content_type() eq 'text/multimarkdown';
 	my $file = $r->filename;
 
-	unless (-e $r->finfo) {
+	unless (-e $file) {
 		$r->log_error("File does not exist: $file");    
 		return NOT_FOUND;
 	}