[wp-trac] Re: [WordPress Trac] #5682: Clean permalinks and mod_rewrite support for IIS

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 15 23:47:56 GMT 2009


#5682: Clean permalinks and mod_rewrite support for IIS
--------------------------+-------------------------------------------------
 Reporter:  man999        |       Owner:  ryan       
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  2.8.1      
Component:  Permalinks    |     Version:  2.5        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by ruslany):

 The main reason regex was proposed in a first place was to extract the
 version information from the SERVER_SOFTWARE variable. As there is no need
 to do that, strpos seemed to do the job. However, if you say that anchored
 regex is faster that's fine by me.

 I've updated the patch (5682_fcgi.2.patch) to use preg_match and also re-
 arranged the condition operands for faster test as per suggestion from
 ddebernardy.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/5682#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list