summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-05-18 21:12:17 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-05-18 21:12:17 +0000
commit5154c3aca4c9362cbd0fb236e0ea9dd5c7c0aa78 (patch)
tree7593d7bd608e79ed6e18bc703af4da73e2f51cfb /includes
parentc3cf0622b62f2e72364417becf141316f069a9c5 (diff)
downloadbrdo-5154c3aca4c9362cbd0fb236e0ea9dd5c7c0aa78.tar.gz
brdo-5154c3aca4c9362cbd0fb236e0ea9dd5c7c0aa78.tar.bz2
- Fixing some plain/url check calls.
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 46e76581d..2e7f87334 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -310,7 +310,7 @@ function theme_get_setting($setting_name, $refresh = FALSE) {
$text = $value['text'][$i];
$link = $value['link'][$i];
if (substr($link, 0, 7) == 'http://') {
- $settings[$type .'_links'][] = '<a href="'. $link .'"'. drupal_attributes($attributes) .'>'. $text .'</a>';
+ $settings[$type .'_links'][] = '<a href="'. check_url($link) .'"'. drupal_attributes($attributes) .'>'. check_plain($text) .'</a>';
}
else {
$settings[$type .'_links'][] = l($text, $link, $attributes);
@@ -818,7 +818,7 @@ function theme_item_list($items = array(), $title = NULL) {
* Returns code that emits the 'more help'-link.
*/
function theme_more_help_link($url) {
- return '<div class="more-help-link">' . t('[<a href="%link">more help...</a>]', array('%link' => $url)) . '</div>';
+ return '<div class="more-help-link">' . t('[<a href="%link">more help...</a>]', array('%link' => check_url($url))) . '</div>';
}
/**
@@ -826,7 +826,7 @@ function theme_more_help_link($url) {
*/
function theme_xml_icon($url) {
if ($image = theme('image', 'misc/xml.png', t('XML feed'), t('XML feed'))) {
- return '<div class="xml-icon"><a href="'. $url .'">'. $image. '</a></div>';
+ return '<div class="xml-icon"><a href="'. check_url($url) .'">'. $image. '</a></div>';
}
}