Plugin Directory

Changeset 2319741


Ignore:
Timestamp:
06/07/2020 10:00:33 AM (6 years ago)
Author:
pagecdn
Message:

Fixed incorrect URL replacement.

Location:
pagecdn/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pagecdn/trunk/functions.php

    r2319458 r2319741  
    186186       
    187187        #   Replace known URLs.
    188         $html   = strtr( $html , $PageCDN_known_URLs );
     188        #   Replacing URLs here cause longer URLs to be partially replaced by shorter URLs (with querystrings)
     189        //$html = strtr( $html , $PageCDN_known_URLs );
    189190       
    190191        if( $PageCDN_webp_support )
     
    277278        $original_url   = $url;
    278279       
    279         //if( isset( $PageCDN_known_URLs[$original_url] ) )
    280         //{
    281         //  return $PageCDN_known_URLs[$original_url];
    282         //}
     280        if( isset( $PageCDN_known_URLs[$original_url] ) )
     281        {
     282            return $PageCDN_known_URLs[$original_url];
     283        }
    283284       
    284285        #   file_put_contents( PAGECDN_DIR . '/cache/test.txt' , $url . "\n\n" , FILE_APPEND );
  • pagecdn/trunk/pagecdn.php

    r2319458 r2319741  
    77    Author URI: https://pagecdn.com
    88    License: GPLv2 or later
    9     Version: 5.5
     9    Version: 5.6
    1010*/
    1111   
     
    2020    //define( 'PAGECDN_IMG_CACHE'       , WP_CONTENT_DIR . '/cache/pagecdn/images.json' );
    2121    //define( 'PAGECDN_WEBP_CACHE'  , WP_CONTENT_DIR . '/cache/pagecdn/webp.json'   );
    22     define( 'PAGECDN_VER'           , '5.5'                                         );
     22    define( 'PAGECDN_VER'           , '5.6'                                         );
    2323   
    2424    $PageCDN_origin_scheme      = strtolower( parse_url( home_url( ) , PHP_URL_SCHEME ) );
Note: See TracChangeset for help on using the changeset viewer.