freebsd-ports/www/p5-Text-MultiMarkdown-ApacheHandler/files/patch-lib__Text__MultiMarkdown__ApacheHandler.pm
Ryan Steinmetz 7adba27c8c New port: www/p5-Text-MultiMarkdown-ApacheHandler:
Processes files containing MultiMarkdown syntax into HTML files and serves
them, optionally applying CSS styles according to rules in your httpd.conf
or (more likely) .htaccess files. Optionally applies SmartyPants
post-processing using Text::Typography.

WWW: http://search.cpan.org/dist/Text-MultiMarkdown-ApacheHandler/
2013-05-06 18:39:43 +00:00

19 lines
573 B
Perl

--- ./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;
}