diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-21 10:28:43 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-21 10:28:43 +0200 |
commit | cd005e6c62976eabb38112138415c1c0e19069ee (patch) | |
tree | a41bfdcef074f03f7f06f41422cd823ff3772538 /apps/files_texteditor | |
parent | f8ec280b6eb072a687be5e55021eb4d76dec02cf (diff) | |
download | nextcloud-server-cd005e6c62976eabb38112138415c1c0e19069ee.tar.gz nextcloud-server-cd005e6c62976eabb38112138415c1c0e19069ee.zip |
use new sanitizeHTML() function
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r-- | apps/files_texteditor/js/editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index 70bb74a9101..9d168c1c4f6 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -67,7 +67,7 @@ function setSyntaxMode(ext){ function showControls(filename,writeperms){ // Loads the control bar at the top. // Load the new toolbar. - var editorbarhtml = '<div id="editorcontrols" style="display: none;"><div class="crumb svg last" id="breadcrumb_file" style="background-image:url("'+OC.imagePath('core','breadcrumb.png')+'")"><p>'+filename.replace(/</, "<").replace(/>/, ">")+'</p></div>'; + var editorbarhtml = '<div id="editorcontrols" style="display: none;"><div class="crumb svg last" id="breadcrumb_file" style="background-image:url("'+OC.imagePath('core','breadcrumb.png')+'")"><p>'+filename+'</p></div>'; if(writeperms=="true"){ editorbarhtml += '<button id="editor_save">'+t('files_texteditor','Save')+'</button><div class="separator"></div>'; } |