[wp-trac] [WordPress Trac] #34190: Function Reference/wp check filetype
WordPress Trac
noreply at wordpress.org
Wed Oct 7 11:56:58 UTC 2015
#34190: Function Reference/wp check filetype
-------------------------------------------------+-------------------------
Reporter: lpkapil | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Cron API | Review
Severity: normal | Version: 4.3.1
Focuses: accessibility, docs, | Keywords:
administration, multisite, performance |
-------------------------------------------------+-------------------------
'''Change Log'''
Since: 2.0.4
'''Source File'''
wp_check_filetype() is located in wp-includes/functions.php.
But it's not actually located at this place as well, instead it's similar
method 'wp_check_filetype_and_ext' is located on this file.
'''Issue:'''
Whenever we provide a url or a file name that have mulitple DOT SEPRATOR,
it simply fails and don't return anything. It's not specified in codex as
well.
Example: 'var/test/abc.user.class.php'
It should check recursively for correct file extension, but it doesn't
looks like it's checking correctly.
Result:
Web application crash in middle if we use it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34190>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list