[wp-trac] [WordPress Trac] #30438: Home path can't contain regular expression special chars

WordPress Trac noreply at wordpress.org
Fri Nov 21 08:09:45 UTC 2014


#30438: Home path can't contain regular expression special chars
---------------------------+------------------------------
 Reporter:  akirk          |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:  trunk
 Severity:  minor          |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------
Changes (by akirk):

 * severity:  normal => minor


Comment:

 Little explanation for my patch: the `preg_quote` could be applied at the
 variable definition but for code review reasons I'd suggest to make it
 obvious in the `preg_replace` that the variable used in the regular
 expression is quoted properly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30438#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list