summaryrefslogtreecommitdiff
path: root/modules/field
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-22 12:55:04 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-22 12:55:04 +0000
commitb36d4959ef2244298fd28d02575c88b0259555b4 (patch)
tree6712fdd01deb61927df28a8a4d0107d92286bc56 /modules/field
parentb0894ceaa74c01444856910fd87dfc992542eb85 (diff)
downloadbrdo-b36d4959ef2244298fd28d02575c88b0259555b4.tar.gz
brdo-b36d4959ef2244298fd28d02575c88b0259555b4.tar.bz2
- Patch #358437 by David_Rothstein, Berdir, sun: filter system security fixes from SA-2008-073 not applied to Drupal 7.x.
Diffstat (limited to 'modules/field')
-rw-r--r--modules/field/field.module2
-rw-r--r--modules/field/modules/text/text.module17
2 files changed, 18 insertions, 1 deletions
diff --git a/modules/field/field.module b/modules/field/field.module
index 5225adb5e..5bb7f0d7f 100644
--- a/modules/field/field.module
+++ b/modules/field/field.module
@@ -219,7 +219,7 @@ function field_modules_disabled($modules) {
->condition('storage_module', $modules, 'IN')
->execute();
- field_cache_clear(TRUE);
+ field_cache_clear();
}
/**
diff --git a/modules/field/modules/text/text.module b/modules/field/modules/text/text.module
index dd7b602fc..600081c1b 100644
--- a/modules/field/modules/text/text.module
+++ b/modules/field/modules/text/text.module
@@ -649,3 +649,20 @@ function text_field_prepare_translation($entity_type, $entity, $field, $instance
}
}
}
+
+/**
+ * Implements hook_filter_format_update().
+ */
+function text_filter_format_update() {
+ field_cache_clear();
+}
+
+/**
+ * Implements hook_filter_format_delete().
+ *
+ * @todo D8: Properly update filter format references in all fields. See
+ * http://drupal.org/node/556022 for details.
+ */
+function text_filter_format_delete() {
+ field_cache_clear();
+}