diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-29 20:37:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-29 20:37:19 +0000 |
commit | f4799d1ce9bcaca7f85d3dca6b772b597cafcb07 (patch) | |
tree | 46bfd9909de7d138cce02817c5c4a7d42d6d4134 /includes | |
parent | 2d0df351d704ba34d191831f7d4b8cb385555be2 (diff) | |
download | brdo-f4799d1ce9bcaca7f85d3dca6b772b597cafcb07.tar.gz brdo-f4799d1ce9bcaca7f85d3dca6b772b597cafcb07.tar.bz2 |
- check_plain() missed its train.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 9d3e44cd0..2a0f7e52d 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -708,8 +708,14 @@ function arg($index) { } /** + * Encode special characters in a plain-text string for display as HTML. + */ +function check_plain($text) { + return htmlspecialchars($text, ENT_QUOTES); +} + +/** * Prepare a URL for use in an HTML attribute. Strips harmful protocols. - * */ function check_url($uri) { $uri = htmlspecialchars($uri, ENT_QUOTES); |