Skip to content

Commit

Permalink
*Ensure local files are not url encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Jun 30, 2017
1 parent 5a49a3e commit 66370cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-rocket-async-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,13 +495,13 @@ public function process_css_buffer( $buffer ) {
if ( class_exists( 'http\Url' ) ) {
$url = new \http\Url( $url_parts );
$url = $url->toString();
$data = $this->_get_content( str_replace( $home, ABSPATH, $url ) );
$data = $this->_get_content( urldecode( str_replace( $home, ABSPATH, $url ) ) );
} else {
if ( ! function_exists( 'http_build_url' ) ) {
require_once plugin_dir_path( __FILE__ ) . 'http_build_url.php';
}

$data = $this->_get_content( str_replace( $home, ABSPATH, http_build_url( $url_parts ) ) );
$data = $this->_get_content( urldecode( str_replace( $home, ABSPATH, http_build_url( $url_parts ) ) ) );
}

if ( ! empty( $type ) && 'all' != $type ) {
Expand Down

0 comments on commit 66370cf

Please sign in to comment.