summaryrefslogtreecommitdiffstats
path: root/web/template/header.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-02-19 16:41:47 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2012-02-19 16:41:47 +0100
commita774b3d3558284bcabcc51a2447fd8b1a22ed194 (patch)
tree72971d850c02e4f9d5f4e5cf2eb117982fcaf58f /web/template/header.php
parent7cb89be81f9113380ee7e3b80d37fbd3b58f77fd (diff)
parent19789c3f759f4162a2eaa4ccc0b6fe0df51957ca (diff)
downloadaurweb-a774b3d3558284bcabcc51a2447fd8b1a22ed194.tar.xz
Merge branch 'maint'
Diffstat (limited to 'web/template/header.php')
-rw-r--r--web/template/header.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/template/header.php b/web/template/header.php
index 73486b4..91ee806 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -2,9 +2,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
- xml:lang="<?php print "$LANG\" lang=\"$LANG"; ?>">
+ xml:lang="<?php print htmlspecialchars($LANG, ENT_QUOTES) ?>" lang="<?php print htmlspecialchars($LANG, ENT_QUOTES) ?>">
<head>
- <title>AUR (<?php print $LANG; ?>)<?php if ($title != "") { print " - " . $title; } ?></title>
+ <title>AUR (<?php print htmlspecialchars($LANG); ?>)<?php if ($title != "") { print " - " . htmlspecialchars($title); } ?></title>
<link rel='stylesheet' type='text/css' href='css/fonts.css' />
<link rel='stylesheet' type='text/css' href='css/containers.css' />
<link rel='stylesheet' type='text/css' href='css/arch.css' />
@@ -52,8 +52,8 @@ reset($SUPPORTED_LANGS);
foreach ($SUPPORTED_LANGS as $lang => $lang_name) {
print '<a href="'
. htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES)
- ."?setlang=$lang\" title=\"$lang_name\">"
- . strtolower($lang) . "</a>\n";
+ ."?setlang=" . htmlspecialchars($lang, ENT_QUOTES) . "\" title=\"" . htmlspecialchars($lang_name, ENT_QUOTES) . "\">"
+ . htmlspecialchars(strtolower($lang)) . "</a>\n";
}
?>
</div>