b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / lib / web / jquery / patches /
Filename/home/a/home/dev2.destoffenstraat.com/lib/web/jquery/patches/jquery-ui.js
Size1.41 kb
Permissionrw-r--r--
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified28-Jan-2025 06:45
Last accessed11-Aug-2025 10:33
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

define([
'jquery',
'jquery-ui-modules/widget'
// 'jquery-ui-modules/dialog' - do not enable this dependency because this is already a mixin for the dialog ui component
], function ($) {
'use strict';

/**
* Patch for CVE-2016-7103 (XSS vulnerability).
* Can safely remove only when jQuery UI is upgraded to >= 1.12.x.
* https://www.cvedetails.com/cve/CVE-2016-7103/
*/
function dialogPatch() {
$.widget('ui.dialog', $.ui.dialog, {
/** @inheritdoc */
_createTitlebar: function () {
this.options.closeText = $('<a>').text('' + this.options.closeText).html();

this._superApply();
},

/** @inheritdoc */
_setOption: function (key, value) {
if (key === 'closeText') {
value = $('<a>').text('' + value).html();
}

this._super(key, value);
}
});
}

return function () {
var majorVersion = $.ui.version.split('.')[0],
minorVersion = $.ui.version.split('.')[1];

if (majorVersion === 1 && minorVersion >= 12 || majorVersion >= 2) {
console.warn('jQuery patch for CVE-2016-7103 is no longer necessary, and should be removed');
}

dialogPatch();
};
});