summaryrefslogtreecommitdiffstats
path: root/httpd
Commit message (Collapse)AuthorAgeFilesLines
* Further refinements to checking of HTML5 documentsorigin/sideshowbarker/html5-updatesMichael[tm] Smith2015-07-271-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | Tested and found to be working as expected. This causes all validation requests for HTML5 documents to just get re-posted as-is to https://validator.w3.org/nu/ using an HTTP 307 "Temporary Redirect".* —with the exception of any requests that have `output=soap12` or `output=ucn` parameters. The reason for making temporary exceptions for those soap12/ucn cases is that some existing tools such as Dreamweaver apparently have integrated support for HTML checking that relies on calling https://validator.w3.org/ to do the validation, and that expects the results in the `output=soap12` format. Other than those exceptions, this change properly 307-redirects all requests for checking of HTML5 documents to https://validator.w3.org/nu/ (that includes file-upload requests as well direct-input requests and URL-input GET requests, and any `output=json` requests regardless of method). *Note: Using a 307 gives the meaning "I'm redirecting this particular request to https://validator.w3.org/nu/ but that doesn't imply you should necessarily use https://validator.w3.org/nu/ for any further requests", which seems like the right meaning for this particular case.
* Use data-URI+redirect to check HTML5 direct input.Michael[tm] Smith2015-07-151-35/+10
| | | | | This replaces the different approach we took in PR #1 for re-routing checking of HTML5 documents submitted by direct input.
* gzip-decode HTML5 direct input before sendingMichael[tm] Smith2015-07-151-0/+2
| | | | If the direct input we’re sending on hasn’t actually already been gzip-encoded, the `decode()` call we make here is just a no-op.
* Merge pull request #2 from w3c/sideshowbarker/file-uploadGuillaume Baudusseau2015-07-131-0/+3
|\ | | | | Inform file-upload users about Nu Html Checker.
| * Inform file-upload users about Nu Html Checker.Michael[tm] Smith2015-07-121-0/+3
| | | | | | | | This is a companion to PR #1.
* | Re-route HTML5 validator requests to Nu Checker.Michael[tm] Smith2015-07-121-0/+39
|/ | | | | | | | | | | | | | | | | | | | | | | | This is a simple but powerful change to the markup-validator code to ease migration of users to the Nu Html Checker. You can try the outcomes of the change at http://qa-dev.w3.org/wmvs/mike/ The change has the following specific effects on the behavior of the validator. 1. "Validate by URI": if a document either has an HTML5 `<!doctype html>` doctype, or if a user manually selects the HTML5-checking option, the request is automatically run directly through https://validator.w3.org/nu. That is, the validation results will be shown directly from the http://validator.w3.org/nu Web UI, rather then being passed back to http://validator.w3.org for post-processing and display. 2. "Validate by Direct Input": Same as above; if the text entered into the input areaa has a <!doctype html> doctype or a user manually selects the HTML5-checking option, results are shown by http://validator.w3.org/nu 3. "Validate by File Upload". No change. (It's not possible to automatically redirect file-upload requests to the Nu Html Checker in the way we can for "Validate by URI" and "Validate by Direct Input".
* check port and schemeTed Guild2015-06-221-0/+18
|
* allow additional ua info from config fileTed Guild2013-03-191-1/+1
|
* Bump copyright year to 2013.Ville Skytt?2013-02-121-1/+1
|
* Fix display of encodings in XML vs meta mismatch message.Takeshi Kurosawa2012-08-111-2/+2
| | | | https://www.w3.org/Bugs/Public/show_bug.cgi?id=18514
* Bump version to 1.3 and copyright years to 2012.Ville Skytt?2012-03-101-2/+2
|
* Override inline charset indication of HTML5 direct input.Ville Skytt?2011-12-121-11/+9
| | | | | | | The inline charset indication is supposed to be ignored in direct input mode, but validator.nu does not work that way but throws an error if it finds an inconsistency (which may originate from us always POSTing the file to it as UTF-8).
* Simplify doctype overriding start element handler.Ville Skytt?2011-12-121-19/+7
|
* Don't change line numbers when overriding multiline charset indication.Ville Skytt?2011-12-121-4/+13
|
* Make XML::LibXML catalog setup work with mod_perl.Ville Skytt?2011-11-283-1/+19
|
* Iterate over hashes more efficiently.Ville Skytt?2011-11-281-29/+22
|
* Replace some regexp uses with index and substr.Ville Skytt?2011-11-281-11/+14
|
* Trivial code cleanups.Ville Skytt?2011-11-281-5/+3
|
* Avoid unnecessary grouping regexp parenthesis.Ville Skytt?2011-11-281-5/+5
|
* Drop unused file_warnings template parameter.Ville Skytt?2011-11-141-5/+1
|
* Remove old unused CSS and associated images.Ville Skytt?2011-11-011-1/+0
|
* Can not -> cannot grammar fixes.Ville Skytt?2011-09-031-1/+1
| | | | http://www.w3.org/Bugs/Public/show_bug.cgi?id=13982
* Drop versions from "use HTML::Template"s to work around 2.x -> 2.10 issues.Ville Skytt?2011-08-302-2/+4
| | | | https://rt.cpan.org/Public/Bug/Display.html?id=70190
* Don't switch to XHTML5 mode for HTML5 docs simply based on presence of xmlns.Ville Skytt?2011-08-241-1/+3
| | | | http://www.w3.org/Bugs/Public/show_bug.cgi?id=9967
* Don't warn about xmlns in non-XML HTML5 documents.Ville Skytt?2011-08-241-1/+1
| | | | http://dev.w3.org/html5/spec/elements.html#global-attributes
* Purge workaround for rt.cpan.org#66642, XML::LibXML >= 1.73 is now required.Ville Skytt?2011-07-231-20/+1
| | | | https://rt.cpan.org/Public/Bug/Display.html?id=66642
* Fix transcode error parsing for docs without linefeeds.Ville Skytt?2011-06-081-1/+1
| | | | http://www.w3.org/mid/907C7FACCE66B940A1473B51352419934BDCB570F7%40LNET-SRV-EXMBX1.landsnet.far.local
* Remove inactive "tip of the day" functionality.Ville Skytt?2011-05-211-17/+0
| | | | | | The tips haven't been included in validator's output since validator 0.7.0 (hg rev 1018:64d1a483353a) due to nothing referencing/including tip.tmpl.
* Add onclick handler to badge sample code to avoid uri=referer redirects.Ville Skytt?2011-05-211-0/+1
| | | | | | | In addition to avoiding the redirect, this removes the need for presence of the Referer header in JavaScript enabled browsers thus making things work in setups that don't send the referer at all, and when the badge is in https docs and the validator isn't.
* Work around XML::LibXML "max column = 80" issue.Ville Skytt?2011-03-171-0/+19
| | | | http://rt.cpan.org/Public/Bug/Display.html?id=66642
* Don't treat empty uri= as uri=1.Ville Skytt?2011-03-131-8/+2
|
* Add Vary: Referer to uri=referer redirects when Referer is available.Ville Skytt?2011-03-131-1/+1
|
* Do uri=referer redirects in httpd.conf if mod_rewrite is available.Ville Skytt?2011-03-131-2/+13
|
* Escape dot in *-upload.html rewrite rule regexps.Ville Skytt?2011-03-131-2/+2
|
* Avoid lc(undef) warnings with Perl >= 5.12.Ville Skytt?2011-03-121-2/+2
|
* Remove internal support for /check/referer, do it in httpd.conf instead.Ville Skytt?2011-03-102-39/+11
| | | | | /check/referer has been deprecated in favor of /check?uri=referer since 2003 (validator 0.6.5 beta 1).
* Wrap long lines.Ville Skytt?2011-03-101-3/+6
|
* ~ s/2010/2011/Ville Skytt?2011-03-091-1/+1
|
* perltidy.Ville Skytt?2010-12-261-2/+2
|
* Initialize WF_Errors to an empty list.Ville Skytt?2010-12-181-0/+1
|
* Code cleanups.Ville Skytt?2010-12-161-10/+4
|
* Avoid warning with autodetected UTF-16[BL]E docs without a BOM.Ville Skytt?2010-12-161-1/+4
|
* make perltidyVille Skytt?2010-12-151-1/+2
|
* Add grouping title for HTML5 validator errors.Ville Skytt?2010-12-151-5/+9
| | | | | Not much info there for now (everything lumped in one group), but this avoids some error log trashing.
* Avoid error log trashing from BOM lookup on empty documents.Ville Skytt?2010-12-151-1/+1
|
* Make finding transcode error line number more memory efficient.Ville Skytt?2010-12-151-2/+2
|
* Report line number of first transcoding error, not last.Ville Skytt?2010-12-141-0/+1
|
* Avoid error log trashing for docs with no root namespace but some other ones.Ville Skytt?2010-12-141-9/+5
|
* Add Makefile target for precompressing *.css and *.js and httpd.conf section ↵Ville Skytt?2010-12-121-1/+8
| | | | for serving them compressed.
* Handle uploaded_file without Content-Disposition filename as a fragment.Ville Skytt?2010-12-041-2/+11
|
* Use CGI::upload() for better upload sanity checks.Ville Skytt?2010-12-041-4/+3
|
* Remove CGI.pm < 3.40 hacks, require >= 3.40.Ville Skytt?2010-11-151-19/+6
|
* Include list of actually used parsers in HTML and Unicorn valid results output.Ville Skytt?2010-11-091-2/+11
|
* Record all parsers used, set debug data for templates only in debug mode.Ville Skytt?2010-11-091-25/+51
|
* Remove outdated comments and unnecessary code.Ville Skytt?2010-11-091-27/+25
|
* Don't lose multivalued parameters while decoding them.Ville Skytt?2010-11-091-2/+2
|
* Actually decode CGI parameters as UTF-8.Ville Skytt?2010-11-061-3/+9
| | | | IDN's and IRI's (in the uri parameter) now have a better chance of working.
* Point to HTTPS badge and referer docs for uploads, direct input, and https ↵Ville Skytt?2010-11-061-1/+7
| | | | | | doc URIs. URI >= 1.53 is now required.
* Get rid of the "Home Page" configuration parameter.Ville Skytt?2010-11-041-7/+10
| | | | | Resolve it automatically instead, and use relative URLs more where appropriate.
* Get rid of file_uri_param, URI escape it in templates where needed.Ville Skytt?2010-11-041-1/+0
|
* + warning messages to ucn_output.tmpltom2010-10-271-1/+1
|
* adding a Unicorn template for critical errorJean-Guilhem Rouel2010-08-171-0/+3
|
* Turn off Config::General CComments for slight performance gain.Ville Skytt?2010-07-242-0/+2
|
* Bump version to 1.2(-dev).Ville Skytt?2010-07-151-1/+1
|
* Don't filter out undefined entity errors from libxml.Ville Skytt?2010-07-151-36/+1
| | | | | We let libxml fetch external entities now (and use catalogs with it) so false positives should no longer occur.
* Run incomplete input URLs through URI::Heuristic.Ville Skytt?2010-07-061-5/+13
|
* Fix double escaping of '"&"' in messages; they're entity escaped in templates.Ville Skytt?2010-07-041-2/+0
|
* Improve source extract handling for non-document errors.Ville Skytt?2010-07-041-65/+88
| | | | | | | report_errors() now populates extracts from our doc source only if the extract has not been defined earlier. Checkers are expected to always populate it with something (anything, really, for example empty string if no better info is available) that is defined for non-document errors.
* Improve error location info to include URI for non-doc resources.Ville Skytt?2010-07-041-3/+32
| | | | http://www.w3.org/Bugs/Public/show_bug.cgi?id=9933
* Call is_xml() less.Ville Skytt?2010-06-291-17/+17
|
* Drop leftover CVS keyword, set $VERSION to 1.1.Ville Skytt?2010-06-291-5/+1
|
* Make template variables case sensitive to improve output performance.Ville Skytt?2010-06-291-0/+1
| | | | | Decreases time for one complete validation request for my current local copy of http://blip.fm/all (2742 errors, 649 warnings) from ~25s to ~15s.
* Code cleanups, NFC.Ville Skytt?2010-06-291-19/+10
|
* perltidy source, NFC.Ville Skytt?2010-06-291-1/+3
|
* Make ent() faster (up to 25% in some pathological tests of mine).Ville Skytt?2010-06-291-5/+11
|
* Entity escape apostrophes.Ville Skytt?2010-06-291-2/+1
|
* Drop CVS keywords.Ville Skytt?2010-06-233-5/+0
|
* Do XML wellformedness check only if other checks do not flag the doc invalid.Ville Skytt?2010-06-221-184/+195
| | | | This is to further mitigate XMLWF performance issues.
* Update instructions etc from CVS to Mercurial.Ville Skytt?2010-06-221-2/+3
|
* Drop another unused variable.ville2010-06-131-3/+2
|
* Drop unused variable.ville2010-06-131-8/+3
|
* Bring back support for non-structured XML::LibXML errors.ville2010-06-131-24/+148
| | | | | This was removed in rev 1.769, but according to the docs, 1.70 may still throw them.
* Bring back comment why XML::LibXML 1.70+ is needed.ville2010-06-101-3/+3
|
* Enable external entity loading in XML::LibXML to fix #9899.ville2010-06-101-7/+58
|
* Avoid malformed comments when overriding doctype or charset.ville2010-05-071-7/+21
|
* When passing transcoded content to external validators (and the internalville2010-05-071-19/+55
| | | | | | XML one), fix up charset declarations in content to reflect transcoding. http://www.w3.org/mid/Pine.LNX.4.64.1004291710580.13453%40zen.rrzn.uni-hannover.de
* Comment spelling fix.ville2010-05-071-3/+3
|
* Require XML::LibXML >= 1.70 for structured error bugfixes.ville2010-03-101-6/+4
|
* libxml2 comment update.ville2010-03-091-2/+3
|
* Don't output X-W3C headers or valid/invalid icon for the feedback doc.ville2010-03-081-4/+5
|
* Add warning for missing Content-Type.ville2010-03-061-2/+7
|
* Fix encoding modification for docs passed to the XML parser (0.8.6 regression).ville2010-03-041-3/+3
|
* Drop support for XML::LibXML < 1.69.ville2010-03-031-149/+23
|
* Drop support for HTML-(Head)Parser < 3.60.ville2010-03-031-34/+27
|
* Fix XML::LibXML version numbers in comments.ville2010-03-021-3/+3
|
* More JSON output fixes (old XML::LibXML workarounds), #7000.ville2010-03-021-2/+9
|
* Drop dead code.ville2010-01-261-31/+9
|
* Set output mode earlier so we can choose the correct error template for URIville2010-01-261-3/+5
| | | | related fatal errors.
* Use output mode specific error template for fatal errors, abort properly onville2010-01-261-51/+33
| | | | | | | fatal errors in non-HTML output modes (#8801). For now, we have error templates for the SOAP and HTML modes, the latter being default for all others.
* Add more cperl-mode indentation settings.ville2010-01-262-3/+7
|