[wp-trac] [WordPress Trac] #29154: plugin_basename() doesn't normalize the file path before unresolving symlinks

WordPress Trac noreply at wordpress.org
Sat Apr 30 14:36:47 UTC 2016


#29154: plugin_basename() doesn't normalize the file path before unresolving
symlinks
--------------------------------------+------------------
 Reporter:  jdgrimes                  |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.6
Component:  Plugins                   |     Version:  3.9
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------
Changes (by ocean90):

 * keywords:  has-patch needs-testing => has-patch has-unit-tests
 * milestone:  Awaiting Review => 4.6


Comment:

 [attachment:29154.3.diff] includes a unit test which fails without the
 change to `plugin_basename()`:


 {{{
 1)
 Tests_Plugin_Basename::test_should_return_correct_basename_for_symlinked_plugins
 Failed asserting that two strings are identical.
 --- Expected
 +++ Actual
 @@ @@
 -a-symlinked-plugin/plugin.php
 +C:/www/path/plugins/a-plugin/plugin.php
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29154#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list