Skip to content

Commit d660a76

Browse files
committed
Disable compression, if set by INI, for images
1 parent a11e8ce commit d660a76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.router.php

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
if (strncmp($_SERVER["DOCUMENT_ROOT"], $afilename, $len) == 0) {
1010
if (file_exists($afilename)) {
11+
/* This could be an image or whatever, so don't try to compress it */
12+
ini_set("zlib.output_compression", 0);
1113
return false;
1214
}
1315
}

0 commit comments

Comments
 (0)