summaryrefslogtreecommitdiffstats
path: root/httpd/cgi-bin/check
diff options
context:
space:
mode:
authorville <ville@localhost>2009-12-14 22:03:55 +0000
committerville <ville@localhost>2009-12-14 22:03:55 +0000
commitd53fc1dba443b987ebca1700f7640b162bd8e11b (patch)
tree380ebb48a18b11464af021f7fc332752b469b6c8 /httpd/cgi-bin/check
parent875610b765ed858c21bb0ff0d041758610b1f122 (diff)
downloadmarkup-validator-d53fc1dba443b987ebca1700f7640b162bd8e11b.zip
markup-validator-d53fc1dba443b987ebca1700f7640b162bd8e11b.tar.gz
markup-validator-d53fc1dba443b987ebca1700f7640b162bd8e11b.tar.bz2
Add minimum required XML::LibXML version (best guess, not necessarily accurate)
Diffstat (limited to 'httpd/cgi-bin/check')
-rwxr-xr-xhttpd/cgi-bin/check9
1 files changed, 4 insertions, 5 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index a332c29..22708d5 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.753 2009-12-14 21:18:33 ville Exp $
+# $Id: check,v 1.754 2009-12-14 22:03:54 ville Exp $
#
# We need Perl 5.8.0+.
@@ -60,7 +60,7 @@ use JSON 2.00 qw();
use SGML::Parser::OpenSP 0.991 qw();
use URI qw();
use URI::Escape qw(uri_escape);
-use XML::LibXML qw();
+use XML::LibXML 1.56 qw(); # Need 1.56 for line_numbers()
###############################################################################
#### Constant definitions. ####################################################
@@ -197,7 +197,7 @@ EOF
#
# Strings
- $VERSION = q$Revision: 1.753 $;
+ $VERSION = q$Revision: 1.754 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
# Read friendly error message file
@@ -611,8 +611,7 @@ if (&is_xml($File)) {
$xmlparser->load_ext_dtd(0);
# [NOT] loading the XML catalog for entities resolution as it seems to
- # cause a lot of unnecessary DTD/entities fetching (requires >= 1.53 if
- # enabled)
+ # cause a lot of unnecessary DTD/entities fetching
#$xmlparser->load_catalog(catfile($CFG->{Paths}->{SGML}->{Library}, 'xml.soc'));
my $xml_string = join "\n", @{$File->{Content}};