Revision
39302 -
Directory Listing
-
[select for diffs]
Modified
Tue May 7 12:30:02 2013 UTC
(7 years, 9 months ago)
by
abogaart
Diff to
previous 38540
HTMLCLEANER-45: detect empty field
- added forceEmptyField parameter to HtmlCleanerTemplate
- added step in the cleaning process that detects 'empty' fields and changes the content to <html><body/></html> if found.
- added test for new forceEmptyField option.
- added Parameterized annotation to the UnitTest class to run all existing tests with forceEmptyField on and off.
- fixed double logging messages.
- resolved some simple problems like typo's, spelling, etc.
Revision
38360 -
Directory Listing
-
[select for diffs]
Modified
Tue Feb 12 13:42:25 2013 UTC
(8 years ago)
by
jbloemendal
Diff to
previous 38152
CMS7-6909 Improve HTMLRepairer/HtmlCleaner so that it doesn't throw NullPointerException on an unconfigured element
Null-pointer swallowed internally when div cleanup element not configured and warn message logged. Added null check and info logging to inform about missing configuration.
Revision
38133 -
Directory Listing
-
[select for diffs]
Modified
Wed Jan 30 23:19:39 2013 UTC
(8 years ago)
by
adouma
Diff to
previous 38132
CMS7-6770: cleanup and refresh LICENSE and NOTICE files
- module name in NOTICE files for one module should be the same, here choosing ${project.name}
Revision
37812 -
Directory Listing
-
[select for diffs]
Modified
Thu Jan 10 13:37:47 2013 UTC
(8 years, 1 month ago)
by
mnour
Diff to
previous 37757
CMS7-6770: Cleanup and refresh LICENSE and NOTICE files
- (Processing Review Comments) Cleaning License and Notice files
- Added inceptionYear in the root pom
Revision
37585 -
Directory Listing
-
[select for diffs]
Modified
Mon Dec 31 10:00:27 2012 UTC
(8 years, 1 month ago)
by
mnour
Diff to
previous 37421
CMS7-6770: Cleanup and refresh LICENSE and NOTICE files
- Renamed LICENSE and NOTICE files and cleaned them
- Deleted the legal directory as it has no use now
Revision
37421 -
Directory Listing
-
[select for diffs]
Modified
Tue Dec 11 23:04:55 2012 UTC
(8 years, 2 months ago)
by
abogaart
Diff to
previous 36156
HTMLCLEANER-43: AllowSingleWhitespace incorrectly replaces <p>\n<a/></p> with <p> <a/></p>
- Removed <html><body> from test input for readability
- Added test for HTMLCLEANER-43
- SingleWhiteSpaceElement handling now correctly detects child elements after characters
Revision
35184 -
Directory Listing
-
[select for diffs]
Modified
Mon Jul 16 13:18:26 2012 UTC
(8 years, 7 months ago)
by
mnour
Diff to
previous 35183
HTMLCLEANER-41: Tagging version 1.02.07-alpha
- Maven release plugin is acting crazy and I keep correcting what it does wrong
Revision
34417 -
Directory Listing
-
[select for diffs]
Modified
Wed May 9 10:41:12 2012 UTC
(8 years, 9 months ago)
by
jbloemendal
Diff to
previous 34416
CMS7-6095: root javascript element xss get transformed into head script xss
Add test to validate explicit allowed javascript as child of the body element is not getting cleaned.
Revision
34416 -
Directory Listing
-
[select for diffs]
Modified
Wed May 9 10:24:21 2012 UTC
(8 years, 9 months ago)
by
jbloemendal
Diff to
previous 34047
CMS7-6095: root javascript element xss get transformed into head script xss
XSS which is part of a head element with no following body element is not getting removed. The neko parser transforms the html structure, if no body element is present the HtmlRepairer is throwing an exception. The html-element cleanup method is split up into html- and head-element, in case the body-element is reached the head-element method is skipping further processing.
Revision
34016 -
Directory Listing
-
[select for diffs]
Modified
Tue Apr 10 11:33:03 2012 UTC
(8 years, 10 months ago)
by
jbloemendal
Diff to
previous 33994
HTMLCLEANER-39 the cleanupStartElement method is complex and it's descended method calls have duplicate code
The method and sub methods of cleanupStartElement are refactored and simplified. The elements are passing cleanUpAttributes and are set depending if after the cleanup elements without attributes are deleted or not.
Revision
33986 -
Directory Listing
-
[select for diffs]
Modified
Fri Apr 6 13:01:24 2012 UTC
(8 years, 10 months ago)
by
jjoachimsthal
Diff to
previous 33984
HTMLCLEANER-38 Add option to allow any CSS class in div, span, pre and p.
Use * as wildcard (which is not allowed as regular CSS classname so it cannot conflict with the output of the WYSIWYG editor)
Revision
26408 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 8 12:04:39 2011 UTC
(10 years, 1 month ago)
by
fvlankvelt
Diff to
previous 25484
HTMLCLEANER-35: apply patch
Patch supplied by Marijan Milicevic:
- adding generics (where possible)
- checks for string.length ==0 instead of equals("")
- other, small micro performance improvements, like zero array allocations
- foreach loops instead of for loops (with k, z, etc loop variables, which is really confusing and error prone)
- removed unnecessary castings
Revision
24286 -
Directory Listing
-
[select for diffs]
Modified
Tue Oct 12 09:04:09 2010 UTC
(10 years, 4 months ago)
by
jjoachimsthal
Diff to
previous 23873
HTMLCLEANER-32 only add a p in table cell if there is already a block element. Otherwise the cell contains tabular data which doesn't need a p.
Small refactoring for readability and reusing the same String.
Added unittest for this.
Revision
23868 -
Directory Listing
-
[select for diffs]
Modified
Tue Sep 7 22:11:11 2010 UTC
(10 years, 5 months ago)
by
abogaart
Diff to
previous 23422
HTMLCLEANER-31: Prevent HtmlSerializer from outputting script element as self-closing (<script />)
- added check for hardcoded set of nonSelveClosingEmptyElements (currently contains only 'script')
Revision
23397 -
Directory Listing
-
[select for diffs]
Modified
Tue Jul 6 09:37:25 2010 UTC
(10 years, 7 months ago)
by
abogaart
Diff to
previous 22583
HTMLCLEANER-30 - <style> element outside of the <head> is removed, but character data is preserved
- Character data in <style> elements found outside of the <head> are now skipped.
- Added unit test for <head> and <style> cleanup, as well a lineWidth test
Revision
22580 -
Directory Listing
-
[select for diffs]
Modified
Wed Apr 28 11:15:40 2010 UTC
(10 years, 10 months ago)
by
abogaart
Diff to
previous 22425
HTMLCLEANER-27 - Whitespace characters (including non-breaking-space) inside body/td/th/blockquote should not be wrapped in a <p> element
- fixed and added test
Revision
22410 -
Directory Listing
-
[select for diffs]
Modified
Fri Apr 9 13:57:02 2010 UTC
(10 years, 10 months ago)
by
abogaart
Diff to
previous 22405
HTMLCLEANER-26: Allow easier debugging of intermediate cleanup results
- added slf4j and debug statements for intermediate results of cleanup method
Revision
22405 -
Directory Listing
-
[select for diffs]
Modified
Fri Apr 9 13:40:20 2010 UTC
(10 years, 10 months ago)
by
abogaart
Diff to
previous 22403
HTMLCLEANER-25: Add possibility for elements like <p> to contain a non-breaking-space + new-line char and NOT be removed by the cleanupBrsAndEmptyContentBlocks step
- added configuration option (default is true) that allows SingleWhitesSpaceElements (like <p> </p>) to ignore trailing NewLine characters.
- added check to introduceParas step to tests if a char[] inside the body element is actually only whitespace and if so, ignores it instead of wrapping it inside a <p> element
Revision
22403 -
Directory Listing
-
[select for diffs]
Modified
Fri Apr 9 13:28:15 2010 UTC
(10 years, 10 months ago)
by
abogaart
Diff to
previous 22372
HTMLCLEANER-24: Remove m1 poms and update m2 pom
- Compile against 1.5
- bumped to 1.02.00-SNAPSHOT
- added jrebel profile
Revision
18985 -
Directory Listing
-
[select for diffs]
Modified
Fri Jul 24 05:54:20 2009 UTC
(11 years, 7 months ago)
by
jjoachimsthal
Diff to
previous 18891
HTMLCLEANER-14 add missing license and notice files. Were missing since the HTMLCleaner was separated from Hippo Cocoon Extensions