Fix 8688ggu00

This commit is contained in:
KernelDeimos 2024-05-15 20:59:20 -04:00
parent f54657a569
commit bee0e19eaf

View File

@ -1015,6 +1015,9 @@ window.addEventListener('message', async (event) => {
let target_path; let target_path;
let create_missing_ancestors = false; let create_missing_ancestors = false;
console.warn(`The method ${event.data.msg} is deprecated - see docs.puter.com for more information.`);
event.data.filename = event.data.filename.replace(/(\.\.\/|\.\.\\)/g, '');
if(event.data.msg === 'saveToPictures') if(event.data.msg === 'saveToPictures')
target_path = path.join(window.pictures_path, event.data.filename); target_path = path.join(window.pictures_path, event.data.filename);
else if(event.data.msg === 'saveToDesktop') else if(event.data.msg === 'saveToDesktop')