summaryrefslogtreecommitdiff
path: root/Xerl/Page/Content.pm
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2011-04-26 18:55:42 +0000
committerPaul Buetow <paul@buetow.org>2011-04-26 18:55:42 +0000
commit67855afa02636e06b142c706487c5eb23efc5e8c (patch)
tree8e357ebd18427cfc86453e0f7996d7fc88c4f96e /Xerl/Page/Content.pm
parent411f4c0227f280e1a412b825ad82b189017e6795 (diff)
added initial fcgi support to all the code files
Diffstat (limited to 'Xerl/Page/Content.pm')
-rw-r--r--Xerl/Page/Content.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/Xerl/Page/Content.pm b/Xerl/Page/Content.pm
index bea97c7..9100215 100644
--- a/Xerl/Page/Content.pm
+++ b/Xerl/Page/Content.pm
@@ -48,7 +48,11 @@ sub parse($) {
config => $config
);
- $xmlcontent->open();
+ if (-1 == $xmlcontent->open()) {
+ $config->set_shutdown(1);
+ return undef;
+ }
+
$xmlcontent->parse();
my Xerl::Page::Rules $rules = Xerl::Page::Rules->new( config => $config );