[wp-trac] [WordPress Trac] #18501: plugin_dir_path() returns unsanitized path on Windows installs

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 01:54:37 UTC 2012


#18501: plugin_dir_path() returns unsanitized path on Windows installs
-------------------------------------+------------------------------
 Reporter:  johnjamesjacoby          |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Plugins                  |     Version:  2.8
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |
-------------------------------------+------------------------------

Comment (by nacin):

 Replying to [comment:1 nacin]:
 > `$theme_loc = str_replace(WP_CONTENT_DIR, '', $theme_root);`

 This is actually dead code. $theme_loc is set up but never used. It will
 be removed in #20103.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18501#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list