Skip to content
Snippets Groups Projects
Commit 9cb01bd0 authored by Björn Schießle's avatar Björn Schießle
Browse files

xss fix

parent 72b36584
Branches
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ function setSyntaxMode(ext){ ...@@ -67,7 +67,7 @@ function setSyntaxMode(ext){
function showControls(filename,writeperms){ function showControls(filename,writeperms){
// Loads the control bar at the top. // Loads the control bar at the top.
// Load the new toolbar. // Load the new toolbar.
var editorbarhtml = '<div id="editorcontrols" style="display: none;"><div class="crumb svg last" id="breadcrumb_file" style="background-image:url(&quot;'+OC.imagePath('core','breadcrumb.png')+'&quot;)"><p>'+filename+'</p></div>'; var editorbarhtml = '<div id="editorcontrols" style="display: none;"><div class="crumb svg last" id="breadcrumb_file" style="background-image:url(&quot;'+OC.imagePath('core','breadcrumb.png')+'&quot;)"><p>'+filename.replace(/</, "&lt;").replace(/>/, "&gt;")+'</p></div>';
if(writeperms=="true"){ if(writeperms=="true"){
editorbarhtml += '<button id="editor_save">'+t('files_texteditor','Save')+'</button><div class="separator"></div>'; editorbarhtml += '<button id="editor_save">'+t('files_texteditor','Save')+'</button><div class="separator"></div>';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment