From 1a2576036b3377ec83a08b7238f59dc474053543 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 12 Jun 2003 17:24:06 +0000 Subject: - Bugfix: charset fixes/clean-up. Patch #52 by Al. - Improvement: renamed some theme functions of the forum module for sake of consistency/readability. Patch #2 by Kristjan. - Improvement: usability improvements to the Xtemplate theme. Patch #3 by Kristjan. - Improvement: CSS'ified the book module pages. Patch #3 by Al. (I simplified the "l ocation" part. Al's approach gave you a bit more power but I'm not sure anyone wants to change that. Besides, this will change as soon we integrate the menu system so I kept it easy for now.) --- includes/common.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 80ab6ee4c..234309459 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -202,8 +202,8 @@ function variable_del($name) { unset($conf[$name]); } -function drupal_specialchars($input) { - return htmlspecialchars($input, ENT_NOQUOTES, "utf-8"); +function drupal_specialchars($input, $quotes = ENT_NOQUOTES) { + return htmlspecialchars($input, $quotes, "utf-8"); } function table_cell($cell, $header = 0) { @@ -489,7 +489,7 @@ function check_url($uri) { } function check_form($text) { - return htmlspecialchars($text); + return drupal_specialchars($text, 0); } function check_query($text) { -- cgit v1.2.3