WordPress.org

Plugin Directory

Opened 17 months ago

#2549 new defect

W3 Total Cache Bug in w3\lib\PgCache.php

Reported by: benno007 Owned by:
Priority: high Severity: normal
Plugin: not-listed Keywords: https
Cc:

Description

In the _get_page_key function:

if ($request_uri)
	            $key = substr($request_uri, strtolower(substr($request_uri, 0, 8)) == 'https' ? 8: 7);
	        else
	            $key = $this->_request_host . $this->_request_uri;

The substring should be as follows:

$key = substr($request_uri, strtolower(substr($request_uri, 0, 8)) == 'https://' ? 8: 7);

Otherwise the $key will never assign properly on https.

Change History (0)

Note: See TracTickets for help on using tickets.