[wp-trac] [WordPress Trac] #12271: Using # in permalinks breaks preg_match in parse_request

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 18 09:55:18 UTC 2010


#12271: Using # in permalinks breaks preg_match in parse_request
--------------------------+-------------------------------------------------
 Reporter:  timsogard     |       Owner:  ryan      
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Permalinks    |     Version:  2.9.2     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------

Comment(by dd32):

 {{{preg_quote($match, '#');}}} is your friend in this case, Anything that
 takes a variable and places it within the match should be run through
 preg_quote at one stage or another.

 nacin: I do believe that simply adding your username to the CC should be
 adequate, Theres no need for the full email address if its tied to the
 user account correctly.

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


More information about the wp-trac mailing list