[wp-trac] [WordPress Trac] #8757: Upgrade or install 2.7 clean urls
defect with magic quotes
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 30 15:47:17 GMT 2008
#8757: Upgrade or install 2.7 clean urls defect with magic quotes
--------------------------+-------------------------------------------------
Reporter: matthijs | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.7.1
Component: Permalinks | Version: 2.7
Severity: normal | Keywords: rewrite, clean urls
--------------------------+-------------------------------------------------
When [[BR]]
a) in the PHP settings both magic_quotes_runtime and magic_quotes_sybase
are set to ON, [[BR]]
b) upgrading from a previous (working) 2.6.5 version or installing a new
version
The clean urls functionality is lost.
The bug is that in the wp_options the field rewrite_rules will then
contain a wrong value: for example:
a:304:{s:12:"robots.txt$"; // etc etc
changing this manually in the database to
a:304:{s:11:"robots.txt$";
will temporarily solve the bug, until a save is done in the permalinks.
Then again this value gets the wrong value.
Setting magic_quotes_runtime and magic_quotes_sybase to Off also solves
the issue. But my guess is that most people encountering this problem will
not know that or might even not be able to change this setting (shared
hosts). It might be better to check in the wordpress code to see how these
PHP settings are and code accordingly
--
Ticket URL: <http://trac.wordpress.org/ticket/8757>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list