From 479424a4590ce99235fe5741828f90926bda4487 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 17 Oct 2014 10:35:24 +0200 Subject: [PATCH] Add some basic sanitization Better to be safe than sorry ;) --- settings/templates/personal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings/templates/personal.php b/settings/templates/personal.php index b3a26acdb69..cc04de5ec38 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -13,7 +13,7 @@ if (isset($form['anchor'])) { $anchor = '#' . $form['anchor']; $sectionName = $form['section-name']; - print_unescaped("
  • $sectionName
  • "); + print_unescaped(sprintf("
  • %s
  • ", OC_Util::sanitizeHTML($anchor), OC_Util::sanitizeHTML($sectionName))); } }?> @@ -165,7 +165,7 @@ if($_['passwordChangeSupported']) { - +