[wp-trac] [WordPress Trac] #45067: Add CSS URL sanitization to kses.
WordPress Trac
noreply at wordpress.org
Tue Oct 9 17:09:55 UTC 2018
#45067: Add CSS URL sanitization to kses.
----------------------------------------+---------------------
Reporter: peterwilsoncc | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+---------------------
Comment (by azaozz):
45067.2.diff is based on 45067.diff and:
- Removes the whole `url(*)` part from the CSS property.
- Makes the first regex a bit shorter/faster, and moves the trimming of
the actual URL to the second regex.
- A bit of cleanup and some white space fixes (this is a very old
code...).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45067#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list