WordPress.org

Make WordPress Core

Changeset 42432


Ignore:
Timestamp:
01/10/2018 02:49:49 AM (23 months ago)
Author:
dd32
Message:

Streams: When checking in wp_is_stream() escape the stream wrapper names for PCRE to avoid PHP warnings when invalid stream wrappers are registered.

Fixes #43054.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r42387 r42432  
    54605460function wp_is_stream( $path ) {
    54615461    $wrappers    = stream_get_wrappers();
     5462    $wrappers    = array_map( 'preg_quote', $wrappers );
    54625463    $wrappers_re = '(' . join( '|', $wrappers ) . ')';
    54635464
Note: See TracChangeset for help on using the changeset viewer.