[wp-trac] [WordPress Trac] #44533: wp_is_stream wrappers need preg delimiter when quoting

WordPress Trac noreply at wordpress.org
Fri Jul 6 12:50:46 UTC 2018


#44533: wp_is_stream wrappers need preg delimiter when quoting
----------------------------+-----------------------------
 Reporter:  JPry            |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Filesystem API  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 With change r42432, the stream wrappers are now quoted with `preg_quote()`
 before being passed into `preg_match()`. However, the call to
 `preg_match()` is using `!` as a delimiter. This means that the calls to
 `preg_quote()` should also have that delimiter included as the second
 parameter.

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


More information about the wp-trac mailing list