summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-24 14:53:59 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-24 14:53:59 +0000
commitdf52ebb726d80df59255667ce807d8aa3463be28 (patch)
tree3f8ea24dd5a1e80b6b64b342ebf6cd655c0759d7
parent180a79a3ce555931e73f099d97a589feec952344 (diff)
downloadbrdo-df52ebb726d80df59255667ce807d8aa3463be28.tar.gz
brdo-df52ebb726d80df59255667ce807d8aa3463be28.tar.bz2
- Patch #740764 by mr.baileys, aspilicious: add missing functions to the sanitization group.
-rw-r--r--includes/bootstrap.inc3
-rw-r--r--includes/common.inc3
-rw-r--r--includes/install.inc1
-rw-r--r--modules/filter/filter.module2
4 files changed, 9 insertions, 0 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index f15cbd95e..f1d103329 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -1380,6 +1380,8 @@ function drupal_unpack($obj, $field = 'data') {
* belongs to.
* @return
* The translated string.
+ *
+ * @ingroup sanitization
*/
function t($string, array $args = array(), array $options = array()) {
global $language;
@@ -1448,6 +1450,7 @@ function t($string, array $args = array(), array $options = array()) {
* valid UTF-8.
*
* @see drupal_validate_utf8()
+ * @ingroup sanitization
*/
function check_plain($text) {
// We do not want to use drupal_static() since PHP version will never change
diff --git a/includes/common.inc b/includes/common.inc
index ee71ee0b2..e88361cf5 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1181,6 +1181,9 @@ function flood_is_allowed($name, $threshold, $window = 3600, $identifier = NULL)
* @defgroup sanitization Sanitization functions
* @{
* Functions to sanitize values.
+ *
+ * See http://drupal.org/writing-secure-code for information
+ * on writing secure code.
*/
/**
diff --git a/includes/install.inc b/includes/install.inc
index c134e676a..11b1a35c2 100644
--- a/includes/install.inc
+++ b/includes/install.inc
@@ -847,6 +847,7 @@ function install_goto($path) {
* system is possibly not yet available.
*
* @see t()
+ * @ingroup sanitization
*/
function st($string, $args = array()) {
static $locale_strings = NULL;
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 29be14894..b83aac959 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -668,6 +668,8 @@ function filter_list_format($format_id) {
* Boolean whether to cache the filtered output in the {cache_filter} table.
* The caller may set this to FALSE when the output is already cached
* elsewhere to avoid duplicate cache lookups and storage.
+ *
+ * @ingroup sanitization
*/
function check_markup($text, $format_id = NULL, $langcode = '', $cache = FALSE) {
if (empty($format_id)) {