diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-03-31 10:57:26 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-03-31 10:57:26 +0000 |
commit | 7252768fd218b03ad459fca3289452d447bfe0e2 (patch) | |
tree | 574357293dd1fe43749a2fd151a9ac7b35549a6a /wp-inst | |
parent | 1562bce60e78b8524eb75399337208798ed71e39 (diff) | |
download | wordpress-mu-7252768fd218b03ad459fca3289452d447bfe0e2.tar.gz wordpress-mu-7252768fd218b03ad459fca3289452d447bfe0e2.tar.xz wordpress-mu-7252768fd218b03ad459fca3289452d447bfe0e2.zip |
strip_tags() before displaying the header image. (Thanks Jason Ling)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@541 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst')
-rw-r--r-- | wp-inst/wp-content/themes/default/functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wp-inst/wp-content/themes/default/functions.php b/wp-inst/wp-content/themes/default/functions.php index 7917f01..5f825ff 100644 --- a/wp-inst/wp-content/themes/default/functions.php +++ b/wp-inst/wp-content/themes/default/functions.php @@ -4,13 +4,13 @@ function kubrick_head() { $head = "<style type='text/css'>\n<!--";
$output = '';
if ( kubrick_header_image() ) {
- $url = kubrick_header_image_url() ;
+ $url = strip_tags( kubrick_header_image_url() );
$output .= "#header { background: url('$url') no-repeat bottom center; }\n";
}
- if ( false !== ( $color = kubrick_header_color() ) ) {
+ if ( false !== ( $color = strip_tags( kubrick_header_color() ) ) ) {
$output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n";
}
- if ( false !== ( $display = kubrick_header_display() ) ) {
+ if ( false !== ( $display = strip_tags( kubrick_header_display() ) ) ) {
$output .= "#headerimg { display: $display }\n";
}
$foot = "--></style>\n";
|