diff options
author | ville <ville@localhost> | 2008-11-22 07:01:23 +0000 |
---|---|---|
committer | ville <ville@localhost> | 2008-11-22 07:01:23 +0000 |
commit | c189d93c8ca213837992a8eb37d6447f5dbc612e (patch) | |
tree | 90fa0bb39adf4371924aee92486aff6312bcd48a | |
parent | 11101e41c6cd63b258eb510028ac346259e471c2 (diff) | |
download | markup-validator-c189d93c8ca213837992a8eb37d6447f5dbc612e.zip markup-validator-c189d93c8ca213837992a8eb37d6447f5dbc612e.tar.gz markup-validator-c189d93c8ca213837992a8eb37d6447f5dbc612e.tar.bz2 |
Fix doctype override for types without a system id.
-rwxr-xr-x | httpd/cgi-bin/check | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index d119f56..6106c79 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.606 2008-11-14 16:22:51 ot Exp $ +# $Id: check,v 1.607 2008-11-22 07:01:23 ville Exp $ # # Disable buffering on STDOUT! @@ -191,7 +191,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.606 $; + $VERSION = q$Revision: 1.607 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -1766,7 +1766,7 @@ sub override_doctype { my $name = $dt->{Name}; local $dtd; - if (($pubid ne "") and ($sysid ne "")) { + if ($pubid ne "") { $dtd = qq(<!DOCTYPE $name PUBLIC "$pubid"); $dtd .= qq( "$sysid") if $sysid; # We don't have one for all types. $dtd .= '>'; |