• Resolved erobus140bpm

    (@souljahn2)


    Hello, thanks for awesomeness! ??
    I’m getting some lines in error_log and its not ending, 280MB error log lol.

    Report number: XHERULFY

    PHP Warning: htmlspecialchars(): charset `UTF-8;’ not supported, assuming utf-8 in /home/*********/public_html/wp-content/plugins/litespeed-cache/inc/utility.class.php on line 586

    574 to 590 below;

    if ( $type ) {
    // Remove potential param type from url
    $url = parse_url( htmlspecialchars_decode( $url ) ) ;
    parse_str( $url[ ‘query’ ], $query ) ;

    $built_arr = array_merge( $query, LiteSpeed_Cache_Router::build_type( $type ) ) ;
    if ( $append_arr ) {
    $built_arr = array_merge( $built_arr, $append_arr ) ;
    }
    $url[ ‘query’ ] = http_build_query( $built_arr ) ;
    self::compatibility() ;
    $url = http_build_url( $url ) ;
    $url = htmlspecialchars( $url ) ;
    }

    return $url ;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Hai Zheng?

    (@hailite)

    Can you try to change the line
    $url = htmlspecialchars( $url ) ;
    to
    $url = htmlspecialchars( $url, ENT_QUOTES, 'UTF-8' ) ; and see if the error is gone or not? Thanks.

    Thread Starter erobus140bpm

    (@souljahn2)

    Awesome! Fastest reply i got (don’t have gf)

    That one fixed it.

    Plugin Support Hai Zheng?

    (@hailite)

    Glad to hear that. We will add this to next release.

    Thanks for your feedback. Happy caching~

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning: htmlspecialchars(): charset `UTF-8;’ not supported, assuming utf-8’ is closed to new replies.