[wp-trac] [WordPress Trac] #9602: eval problem in classes.php and rewrite.php

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 22:37:42 GMT 2009


#9602: eval problem in classes.php and rewrite.php
--------------------------+-------------------------------------------------
 Reporter:  obsidiandh    |       Owner:  anonymous 
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:  2.7.1     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 Hi,

 One of the moderators on the support forums said I should raise a ticket
 for this.

 wp-includes/classes.php and wp-includes/rewrite.php both use the eval
 function.

 This function is disabled by suhosin (and sometimes in php.ini) for
 security reasons.

 I've written a patch for the files which under my limited testing seems to
 have no ill effects.

 I expect you can find a cleaner way to do this but here is the patch (see
 attached files).

 Hopefully this will help you get wordpress installed on more locked down
 systems.

 Regards

 Rowan

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9602>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list