summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--ctools.module10
2 files changed, 11 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 649d10e..19c3886 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -53,6 +53,7 @@ Restore a less aggressive plugin caching.
#680778 by hefox: Taxonomy synonyms not showing correctly in term list content type.
#617678: Improve 'back' button handling during adding a page in page manager.
#817810: Search menu retooling caused the title of search pages to get lost.
+#505132: Fix CSS caching to truly work on private filesystem now.
ctools 6.x-1.6 (2010-Jun-1)
==============
diff --git a/ctools.module b/ctools.module
index 9ddad15..f618c79 100644
--- a/ctools.module
+++ b/ctools.module
@@ -885,3 +885,13 @@ function ctools_export_ui_ctools_access_set($argument, $access) {
return $handler->edit_cache_set_key($item, $key);
}
}
+
+function ctools_file_download($filepath) {
+ if (strpos($filepath, 'ctools') === 0) {
+ $mime = file_get_mimetype($filepath);
+ // For safety's sake, we allow only text and images.
+ if (strpos($mime, 'text') === 0 || strpos($mime, 'image')) {
+ return array('Content-type:' . $mime);
+ }
+ }
+} \ No newline at end of file