summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow (europa) <paul@buetow.org>2015-05-17 10:21:56 +0100
committerPaul Buetow (europa) <paul@buetow.org>2015-05-17 10:21:56 +0100
commitee1d9d4243e970d102ea4f57bfacb379e5b25b3a (patch)
tree61f72583575b74df288b291f166d41ce5decce30
parentfe5a81dc73149765ba75202c29684144c080accd (diff)
add curlpath
-rw-r--r--Xerl/Page/Content.pm3
-rw-r--r--xerl.conf1
2 files changed, 3 insertions, 1 deletions
diff --git a/Xerl/Page/Content.pm b/Xerl/Page/Content.pm
index 6cadd9a..b63d710 100644
--- a/Xerl/Page/Content.pm
+++ b/Xerl/Page/Content.pm
@@ -112,7 +112,8 @@ sub _insertrules {
# Fetch via LWP::Simple
#my $got = get($text);
# Bug in FreeBSD Perl and LWP Module
- my $got = `curl "$text"`;
+ my $curl = $config->get_curlpath();
+ my $got = `$curl "$text"`;
if ($!) {
push @content, "$text: $!";
} else {
diff --git a/xerl.conf b/xerl.conf
index df4b930..a310825 100644
--- a/xerl.conf
+++ b/xerl.conf
@@ -16,3 +16,4 @@ defaulttemplate=html5
hidesubhome=1
hostroot=/usr/local/www/xerlhosts/branches/stable/hosts/
404=http://paul.buetow.org
+curlpath=/usr/local/bin/curl