Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
df52ebb7
Commit
df52ebb7
authored
Apr 24, 2010
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#740764
by mr.baileys, aspilicious: add missing functions to the sanitization group.
parent
180a79a3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
includes/bootstrap.inc
includes/bootstrap.inc
+3
-0
includes/common.inc
includes/common.inc
+3
-0
includes/install.inc
includes/install.inc
+1
-0
modules/filter/filter.module
modules/filter/filter.module
+2
-0
No files found.
includes/bootstrap.inc
View file @
df52ebb7
...
...
@@ -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
...
...
includes/common.inc
View file @
df52ebb7
...
...
@@ -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.
*/
/**
...
...
includes/install.inc
View file @
df52ebb7
...
...
@@ -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
;
...
...
modules/filter/filter.module
View file @
df52ebb7
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment