[wp-trac] [WordPress Trac] #36170: Small refactor in the validate_file method + unit tests
WordPress Trac
noreply at wordpress.org
Tue Oct 24 23:14:36 UTC 2017
#36170: Small refactor in the validate_file method + unit tests
--------------------------------------+--------------------------
Reporter: borgesbruno | Owner: johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.9
Component: Filesystem API | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------
Changes (by johnbillion):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"42011"]:
{{{
#!CommitTicketReference repository="" revision="42011"
Filesystem API: Add more specificity to the rules for valid files in
`validate_file()`.
This now treats files containing `./` as valid, and also treats files
containing a trailing `../` as valid due to widespread use of this pattern
in theme and plugin zip files.
Adds tests.
Props Ipstenu, borgesbruno, DavidAnderson, philipjohn, birgire
Fixes #42016, #36170
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36170#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list