summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-02-28 17:19:04 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-02-28 17:19:04 +0100
commitcef6131ea8d9875da70516a523ee076e81257a09 (patch)
treea69ca0b73c9619c99c5ab1748ba151627057f555 /lib/template.php
parent2f036bcc5425bc1b67f7caad4da78ab3efd0fba2 (diff)
downloadnextcloud-server-cef6131ea8d9875da70516a523ee076e81257a09.tar.gz
nextcloud-server-cef6131ea8d9875da70516a523ee076e81257a09.zip
Sanitize HTML in html_select_options
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php
index ce55e58d28d..3c103c901c2 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -147,7 +147,7 @@ function html_select_options($options, $selected, $params=array()) {
$label = $label[$label_name];
}
$select = in_array($value, $selected) ? ' selected="selected"' : '';
- $html .= '<option value="' . $value . '"' . $select . '>' . $label . '</option>'."\n";
+ $html .= '<option value="' . OC_Util::sanitizeHTML($value) . '"' . $select . '>' . OC_Util::sanitizeHTML($label) . '</option>'."\n";
}
return $html;
}