WordPress.org

Ready to get started?Download WordPress

Forums

WP Minify
[FIX] pretty URL broken (1 post)

  1. jiayul
    Member
    Posted 2 years ago #

    I found the cached file contains:

    400 Bad Request

    It's caused by feeding bad url to curl,
    here is my fix:

    --- wp-minify.php.orig
    +++ wp-minify.php
    @@ -605,6 +605,8 @@
         $wpm_options = get_option($this->name);
         $cached_urls = array();
         foreach ($urls as $url) {
    +      // FIXED: curl doesn't decode html entity url
    +      $url = html_entity_decode($url);
           $cache_file = $this->c->get_plugin_dir().'cache/'.md5($url).$type;
           if (file_exists($cache_file)) {
             // check cache expiration

    http://wordpress.org/extend/plugins/wp-minify/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags