diff --git a/inc/inc.ClassUI.php b/inc/inc.ClassUI.php index 5d2b0a9a2..15f82a25a 100644 --- a/inc/inc.ClassUI.php +++ b/inc/inc.ClassUI.php @@ -127,7 +127,7 @@ class UI { echo "\n"; echo "\n"; echo "\n"; - echo "".(strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS").(strlen($title)>0 ? ": " : "").$title."\n"; + echo "".(strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS").(strlen($title)>0 ? ": " : "").htmlspecialchars($title)."\n"; echo "\n"; echo "0 ? " class=\"".$bodyClass."\"" : "").">\n"; } @@ -206,7 +206,7 @@ class UI { (strlen($settings->_siteName)>0 ? $settings->_siteName : "LetoDMS"). "\n"; echo "\n"; - echo "
".getMLText("signed_in_as")." ".$user->getFullName(). + echo "
".getMLText("signed_in_as")." ".htmlspecialchars($user->getFullName()). " (".getMLText("sign_out").").
\n"; echo "
 
\n". "
\n"; @@ -450,15 +450,18 @@ class UI { return; } /* }}} */ - function contentHeading($heading) { /* {{{ */ + function contentHeading($heading, $noescape=false) { /* {{{ */ - echo "
".$heading."
\n"; + if($noescape) + echo "
".$heading."
\n"; + else + echo "
".htmlspecialchars($heading)."
\n"; return; } /* }}} */ function contentSubHeading($heading, $first=false) { /* {{{ */ - echo "
".$heading."
\n"; + echo "
".htmlspecialchars($heading)."
\n"; return; } /* }}} */ @@ -532,7 +535,7 @@ class UI { continue; } $index = ($objArr[$i]->getSequence() + $objArr[$i+1]->getSequence()) / 2; - print "