[wp-trac] [WordPress Trac] #4663: cannot load plugin
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 23 05:00:56 GMT 2007
#4663: cannot load plugin
----------------------------+-----------------------------------------------
Reporter: mrwizard | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone:
Component: Administration | Version:
Severity: major | Keywords:
----------------------------+-----------------------------------------------
---> Using WP v2.2.1 the newest build as of 7/20/2007
Some plugins use wp-admin/options.php to update their parameter settings.
Paths to the plugin folder get changed via a urlencode function in this
file. So a plugin options file located at...
wp-content/pluginName/plugin-options.php
gets changed to...
wp-content/pluginName2Fplugin-options.php
and the admin.php file errors this out with a message...
CANNOT LOAD pluginName2Fplugin-options.php
The problem is in the wp-admin/options.php file around about line 112.
$goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback);
needs to be changed to...
$goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $goback);
(note the addition of the % symbol)
This change keeps the %2F in the path instead of just 2F.
Perhaps there's another way.... but this worked for me. If you guys know
a better way, please let me know.
Tim
--
Ticket URL: <http://trac.wordpress.org/ticket/4663>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list