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

WordPress Trac noreply at wordpress.org
Fri Nov 21 08:07:26 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:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Because `$home_path` is used within a `preg_replace` without being run
 through `preg_quote` if, for example, it contains a `+` then it won't get
 stripped properly and therefore no path on the site will work.

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


More information about the wp-trac mailing list