[wp-trac] [WordPress Trac] #20652: Install plugins with FTP upload, virtual subdomain, bad base dir?
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 6 11:17:14 UTC 2012
#20652: Install plugins with FTP upload, virtual subdomain, bad base dir?
-----------------------------+--------------------
Reporter: rajcz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Upgrade/Install | Version: 3.3.2
Severity: critical | Resolution:
Keywords: |
-----------------------------+--------------------
Changes (by dd32):
* milestone: Awaiting Review => 3.5
Comment:
Related: #20934
The cause here is that the full path is searched for in each subdirectory,
which causes path tokens to be searched for twice. Simply limiting the
recursive searches to only find the remaining path appears to fix it, and
shouldn't have any unintended side effects.
For reference, the filesystem paths being tested here are:
{{{
/www/
example.com/
example.com/
sub.example.com/
}}}
If you're searching for the sub.example.com path, the 'example.com'
directory would be used twice, resulting in /www/example.com/example.com/
instead of /www/example.com/sub.example.com/
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20652#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list