summaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js
index f5750b23790..7c2b507280f 100644
--- a/settings/js/admin.js
+++ b/settings/js/admin.js
@@ -3,8 +3,13 @@ $(document).ready(function(){
// Hack to add a trusted domain
if (params.trustDomain) {
- OC.dialogs.confirm(t('settings', 'Are you really sure you want add "{domain}" as trusted domain?',
- {domain: params.trustDomain}),
+ var potentialDomain = params.trustDomain;
+ potentialDomain = encodeURI(escapeHTML(potentialDomain));
+ potentialDomain = '<span class="trusted-domain-warning">' + potentialDomain + '</span>';
+
+ OC.dialogs.confirmHtml(t('settings', 'Are you really sure you want add {domain} as trusted domain?', {
+ domain: potentialDomain
+ }, undefined, {escape: false}),
t('settings', 'Add trusted domain'), function(answer) {
if(answer) {
$.ajax({