Commit f98cbf4f authored by DamienMcKenna's avatar DamienMcKenna Committed by bgm

Issue #1398578 by mow, DamienMcKenna, jamix, Philip_Clarke, bendev: Apache has...

Issue #1398578 by mow, DamienMcKenna, jamix, Philip_Clarke, bendev: Apache has problem with urlencoded query strings in cached file names
parent f92721a1
......@@ -339,6 +339,14 @@ function boost_exit($destination = NULL) {
// Attach extension to filename.
$_boost['filename'] .= '.' . $_boost['matched_header_info']['extension'];
// Write to file.
$_boost['filename'] = str_ireplace('%2F', '/', $_boost['filename']);
// If the filename includes URL encoded characters create an extra copy of
// the file with the characters decoded.
if (rawurldecode($_boost['filename']) != $_boost['filename']) {
boost_write_file(rawurldecode($_boost['filename']), $data);
}
boost_write_file($_boost['filename'], $data);
// Gzip support.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment