Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update
  • Loading branch information
peter-mw committed Apr 29, 2022
1 parent da27c91 commit bd419c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions userfiles/modules/files/browser.php
Expand Up @@ -90,6 +90,7 @@
}

?>

<script>

var back = function () {
Expand Down
7 changes: 7 additions & 0 deletions userfiles/modules/files/files_admin.js
@@ -1,3 +1,7 @@

mw.lib.require('xss');


createPopHTML = function (sourceUrl, type) {
type = type || 'image';
var h;
Expand Down Expand Up @@ -69,6 +73,9 @@ deleteItem = function (url, name, frommodal) {
if (self === parent) {
mw.on.hashParam('select-file', function (pval) {
var dialog;

pval = filterXSS(pval);

if (pval.valueOf()) {
var type = pval.valueOf().split(".").pop();
type = type.toLowerCase();
Expand Down
5 changes: 5 additions & 0 deletions userfiles/modules/microweber/api/api_settings.js
Expand Up @@ -336,6 +336,11 @@
mw.require(mw.settings.libs_url + 'multilanguage' + '/mlTextArea.js');
}
],
xss: [
function () {
mw.require(mw.settings.libs_url + 'xss' + '/xss.min.js');
}
],
codemirror: [
function () {
mw.require(mw.settings.libs_url + 'codemirror' + '/codemirror.min.js');
Expand Down

0 comments on commit bd419c2

Please sign in to comment.