Changeset 1238

Show
Ignore:
Timestamp:
09/18/2008 06:38:45 AM (2 years ago)
Author:
DotMG
Message:

refs #816, #575

porting [1237] to trunk: applying htmlspecialchars_ent to GetConfigValue(meta_keywords) and GetConfigValue(meta_description).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/templates/header.php

    r1155 r1238  
    7474        $extra_meta .= '        <meta name="robots" content="noindex, nofollow, noarchive" />'."\n"; 
    7575} 
    76 if ('' != ($meta_keywords = $this->GetConfigValue('meta_keywords'))) 
     76if ('' != ($meta_keywords = $this->htmlspecialchars_ent($this->GetConfigValue('meta_keywords')))) 
    7777{ 
    7878        $extra_meta .= '        <meta name="keywords" content="'.$meta_keywords.'" />'."\n"; 
    7979} 
    80 if ('' != ($meta_description = $this->GetConfigValue('meta_description'))) 
     80if ('' != ($meta_description = $this->htmlspecialchars_ent($this->GetConfigValue('meta_description')))) 
    8181{ 
    8282        $extra_meta .= '        <meta name="description" content="'.$meta_description.'" />'."\n";