diff options
author | link <link@localhost> | 2005-02-09 10:29:18 +0000 |
---|---|---|
committer | link <link@localhost> | 2005-02-09 10:29:18 +0000 |
commit | e67e3803e44330089d0583aea649e78053c2f94e (patch) | |
tree | 34a529fd36a1b2087fa90977971c29b6e8703840 | |
parent | 7a4fc6ced249e8987b8ea0f9cba6adb59814712b (diff) | |
download | markup-validator-e67e3803e44330089d0583aea649e78053c2f94e.zip markup-validator-e67e3803e44330089d0583aea649e78053c2f94e.tar.gz markup-validator-e67e3803e44330089d0583aea649e78053c2f94e.tar.bz2 |
Nuke MSIE warning since it's been fixed on MSFT's end (Hotfix in MS05-014).
-rwxr-xr-x | httpd/cgi-bin/check | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 845083b..3b330c8 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -9,7 +9,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.395 2005-02-06 03:47:38 link Exp $ +# $Id: check,v 1.396 2005-02-09 10:29:18 link Exp $ # # Disable buffering on STDOUT! @@ -224,7 +224,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.395 $; + $VERSION = q$Revision: 1.396 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -1405,26 +1405,9 @@ sub parse_content_type { . uri_escape $url; exit; } else { - my $msie = ''; $File->{'Error Flagged'} = TRUE; - if ($File->{'Is Upload'} and $ct eq 'text/plain' - and $q->http('User-Agent') eq 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)') { - $msie = <<".EOF."; - - <p id="msie"> - <strong>Note:</strong> - a bug in the version of Microsoft Internet Explorer that comes with - Windows XP Service Pack 2 causes it to mislabel uploaded files as - "<code>text/plain</code>". You can work around this problem by using a - different browser, such as <a - href="http://getfirefox.com/">Firefox</a>, for validating - uploaded files; or by publishing the page in question and validating it - by URL instead. - </p> -.EOF. - } $File->{'Error Message'} = sprintf(<<" EOF", &ent($ct)); - <div class="error">$msie + <div class="error"> <p> Sorry, I am unable to validate this document because its content type is <code>%s</code>, which is not currently supported by this service. |