Making WordPress.org

Changeset 1083


Ignore:
Timestamp:
01/03/2015 12:16:48 AM (9 years ago)
Author:
iandunn
Message:

Official WordPress Events: Redact Meetup API key from error logs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/official-wordpress-events/official-wordpress-events.php

    r495 r1083  
    201201    protected function remote_get( $url, $args = array() ) {
    202202        $response = $error = false;
    203        
     203
    204204        if ( $url ) {
    205205            $transient_key = 'owe_' . wp_hash( $url . print_r( $args, true ) );
     
    230230   
    231231                if ( $error ) {
     232                    $error = preg_replace( '/&key=[a-z0-9]+/i', '&key=[redacted]', $error );
    232233                    trigger_error( sprintf( '%s error for %s: %s', __METHOD__, parse_url( site_url(), PHP_URL_HOST ), sanitize_text_field( $error ) ), E_USER_WARNING );
    233234   
Note: See TracChangeset for help on using the changeset viewer.