diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-12-08 10:28:15 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-12-08 10:56:47 +0300 |
commit | 4b293dffe56ac452ed3bdadb3dd094e667ecfb2d (patch) | |
tree | 98aca3c33393a4edd417d1c61484673c9a587660 /lib/private/template.php | |
parent | 70c228a7cc31c6193bdd1c2f18a75dffe08785b8 (diff) |
Use \OCP\Util::sanitizeHTML instead of \OC_Util::sanitizeHTML
Diffstat (limited to 'lib/private/template.php')
-rw-r--r-- | lib/private/template.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/template.php b/lib/private/template.php index 1476a964ef3..d794dacac23 100644 --- a/lib/private/template.php +++ b/lib/private/template.php @@ -226,12 +226,12 @@ class OC_Template extends \OC\Template\Base { // Add custom headers $headers = ''; foreach(OC_Util::$headers as $header) { - $headers .= '<'.OC_Util::sanitizeHTML($header['tag']); + $headers .= '<'.\OCP\Util::sanitizeHTML($header['tag']); foreach($header['attributes'] as $name=>$value) { - $headers .= ' '.OC_Util::sanitizeHTML($name).'="'.OC_Util::sanitizeHTML($value).'"'; + $headers .= ' '.\OCP\Util::sanitizeHTML($name).'="'.\OCP\Util::sanitizeHTML($value).'"'; } if ($header['text'] !== null) { - $headers .= '>'.OC_Util::sanitizeHTML($header['text']).'</'.OC_Util::sanitizeHTML($header['tag']).'>'; + $headers .= '>'.\OCP\Util::sanitizeHTML($header['text']).'</'.\OCP\Util::sanitizeHTML($header['tag']).'>'; } else { $headers .= '/>'; } |