RandomSec/main
Tom Morris a3fab26cca
Fix the text format guesser so it doesn't inappropriately guess WikiText (#2924)
* Fix text guesser so it doesn't guess wikitext

Fixes #2850
- Add simple magic detector for zip & gzip files to keep
  it from attempting to guess binary files
- Add a counter for C0 controls for the same reason
- Tighten wikitable counters to require marker at
  beginning of the line, per the specification
- Refactor to use Apache Commons instead of private
  counting methods
- Add tests for most TextGuesser formats

* Remove misplaced duplicate test data file

* Fix LGTM warning + minor cleanups

* Use BoundedInputStream to prevent runaway lines
2020-07-15 08:56:00 +02:00
..
IDEs/eclipse Thad no longer supports Netbeans config (#2466) 2020-03-27 09:30:30 +01:00
src Fix the text format guesser so it doesn't inappropriately guess WikiText (#2924) 2020-07-15 08:56:00 +02:00
tests Fix the text format guesser so it doesn't inappropriately guess WikiText (#2924) 2020-07-15 08:56:00 +02:00
webapp Merge branch 'origin/master' into Weblate. 2020-07-14 22:41:55 +02:00
pom.xml Bump mockwebserver from 4.7.2 to 4.8.0 2020-07-13 08:39:23 +00:00