diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-24 16:26:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-24 16:26:13 +0000 |
commit | 45d5aad6dfde192ef5b986f3233a41f15d035f24 (patch) | |
tree | ba9364c6c2610498ba07e430925c868a6c9e45fa /includes/common.inc | |
parent | 17e5b5c2d792fea207173c23bb76636297a21a03 (diff) | |
download | brdo-45d5aad6dfde192ef5b986f3233a41f15d035f24.tar.gz brdo-45d5aad6dfde192ef5b986f3233a41f15d035f24.tar.bz2 |
- Updated Drupal to use "on output" filters. Derived from Gerhard's patch.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc index 9ba97260f..35af870e2 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -555,6 +555,10 @@ function rewrite_old_urls($text) { function check_output($text) { if (isset($text)) { + // filter content on output: + $text = filter($text); + + // get the line breaks right: if (strip_tags($text, "<a><i><b><u><tt><code><cite><strong><img>") == $text) { $text = nl2br($text); } |