summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-11 18:16:32 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-11 18:16:32 +0000
commit3b8c99d91e3733427e9f821ed385f097d18e8ffa (patch)
tree34ec7c5574a1c00d348eb371de067f25625ec125 /includes
parentc6eede081fa9d88c4ece2ca96f5369dcbebff189 (diff)
downloadbrdo-3b8c99d91e3733427e9f821ed385f097d18e8ffa.tar.gz
brdo-3b8c99d91e3733427e9f821ed385f097d18e8ffa.tar.bz2
- Bugfix: fixed the CREATE FUNCTION in database.mssql as it needs to be prefixed with GO for some obscure reason. Patch by Kjartan.
- Bugfix: fixed the defaults for blocks in database.mssql so the NOT NULL fields get values. Patch by Kjartan. - Bugfix: changed check_form() to use htmlspecialchars() instead of drupal_specialchars() as this caused Drupal to emit incorrect form items in presence of quotes. Example: <input type="submit" class="form-submit" name="op" value="Submit "top nodes" block changes" /> IMO, drupal_specialchars() is better called xmlspecialchars() to avoid confusion. - Bugfix: when an anonymous user visits a site, they shouldn't see any content (except the login block, if it is enabled) unless they have the "access content" permissions. Patch by Matt Westgate. - Improvement: improved the error checking and the error messages in the profile module. Updated the code to match the Drupal coding conventions. Modified patch from Matt Westgate. - Improvement: don't generate the <base href=""> tag in the base theme; it is already emitted by theme_head(). Patch by Kristjan. - Improvement: don't execute any SQL queries when checking the permissions of user #1. Patch by Kjartan. - Improvement: made a scalable layout form that works in IE and that behaves better with narrow themes. Part of patch #51 by Al. - Improvement: removed some redundant print statements from the comment module. Modified patch from Craig Courtney.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc2
-rw-r--r--includes/theme.inc1
2 files changed, 1 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 3b30032d0..80ab6ee4c 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -489,7 +489,7 @@ function check_url($uri) {
}
function check_form($text) {
- return drupal_specialchars($text);
+ return htmlspecialchars($text);
}
function check_query($text) {
diff --git a/includes/theme.inc b/includes/theme.inc
index 643e39323..2e60b37a3 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -23,7 +23,6 @@ class BaseTheme {
$output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n";
$output .= "<html><head><title>". $title ? $title : variable_get(site_name, "drupal") ."</title>";
- $output .= "<base href=\"$base_url/\" />";
$output .= theme_head($main);
$output .= "</head><body bgcolor=\"$this->background\" text=\"$this->foreground". theme_onload_attribute(). "\">";
$output .= "<table border=\"0\" cellspacing=\"4\" cellpadding=\"4\"><tr><td valign=\"top\" width=\"170\">";