diff --git a/CHANGES.md b/CHANGES.md
index 31da3f55fe..63e9f6cdef 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -26,6 +26,10 @@
- Updated missing storage env vars
+## Security
+
+- Fixed an XSS vulnerability in the Appwrite console
+
# Version 0.7.0
## Features
diff --git a/app/tasks/doctor.php b/app/tasks/doctor.php
index 2918d4f1e4..0f601bb5b5 100644
--- a/app/tasks/doctor.php
+++ b/app/tasks/doctor.php
@@ -139,7 +139,6 @@ $cli
Console::success('SMTP................connected 👍');
} catch (\Throwable $th) {
Console::error('SMTP.............disconnected 👎');
- var_dump($th);
}
$host = App::getEnv('_APP_STATSD_HOST', 'telegraf');
diff --git a/app/views/console/database/search/files.phtml b/app/views/console/database/search/files.phtml
index ac9f76e0ea..0a1b4d739c 100644
--- a/app/views/console/database/search/files.phtml
+++ b/app/views/console/database/search/files.phtml
@@ -64,6 +64,7 @@
+
|
diff --git a/app/views/console/functions/function.phtml b/app/views/console/functions/function.phtml
index 74960eba48..4ae65f491e 100644
--- a/app/views/console/functions/function.phtml
+++ b/app/views/console/functions/function.phtml
@@ -117,7 +117,7 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true);
-
+
- 0
+
+ 0
+
+
Bandwidth
@@ -117,7 +120,10 @@ $usageStatsEnabled = $this->getParam('usageStatsEnabled',true);
Documents
diff --git a/app/views/console/storage/index.phtml b/app/views/console/storage/index.phtml
index bd39699592..6b03814ae2 100644
--- a/app/views/console/storage/index.phtml
+++ b/app/views/console/storage/index.phtml
@@ -204,6 +204,7 @@ $fileLimitHuman = $this->getParam('fileLimitHuman', 0);
|
+
|
diff --git a/public/dist/scripts/app-all.js b/public/dist/scripts/app-all.js
index 6e2367f10a..e53871531e 100644
--- a/public/dist/scripts/app-all.js
+++ b/public/dist/scripts/app-all.js
@@ -2071,7 +2071,7 @@ container.path(paths[i],value);}});}
return;}
if(element.value!==value){element.value=value;element.dispatchEvent(new Event('change'));}
if(bind){element.addEventListener('input',sync);element.addEventListener('change',sync);}}
-else{if(element.innerHTML!=value){element.innerHTML=value;}}};let sync=(()=>{return()=>{if(debug){console.info('debug-ls-bind','sync-path',paths);console.info('debug-ls-bind','sync-syntax',syntax);console.info('debug-ls-bind','sync-syntax-parsed',parsedSyntax);console.info('debug-ls-bind','sync-value',element.value);}
+else{if(element.textContent!=value){element.textContent=value;}}};let sync=(()=>{return()=>{if(debug){console.info('debug-ls-bind','sync-path',paths);console.info('debug-ls-bind','sync-syntax',syntax);console.info('debug-ls-bind','sync-syntax-parsed',parsedSyntax);console.info('debug-ls-bind','sync-value',element.value);}
for(let i=0;i=thresh&&u'+
-units[u]+"");}).add("statsTotal",function($value){if(!$value){return 0;}
+let thresh=1000;if(Math.abs($value)=thresh&&u=thresh&&u{return()=>{if(debug){console.info('debug-ls-bind','sync-path',paths);console.info('debug-ls-bind','sync-syntax',syntax);console.info('debug-ls-bind','sync-syntax-parsed',parsedSyntax);console.info('debug-ls-bind','sync-value',element.value);}
+else{if(element.textContent!=value){element.textContent=value;}}};let sync=(()=>{return()=>{if(debug){console.info('debug-ls-bind','sync-path',paths);console.info('debug-ls-bind','sync-syntax',syntax);console.info('debug-ls-bind','sync-syntax-parsed',parsedSyntax);console.info('debug-ls-bind','sync-value',element.value);}
for(let i=0;i=thresh&&u'+
-units[u]+"");}).add("statsTotal",function($value){if(!$value){return 0;}
+let thresh=1000;if(Math.abs($value)=thresh&&u=thresh&&u{return()=>{if(debug){console.info('debug-ls-bind','sync-path',paths);console.info('debug-ls-bind','sync-syntax',syntax);console.info('debug-ls-bind','sync-syntax-parsed',parsedSyntax);console.info('debug-ls-bind','sync-value',element.value);}
+else{if(element.textContent!=value){element.textContent=value;}}};let sync=(()=>{return()=>{if(debug){console.info('debug-ls-bind','sync-path',paths);console.info('debug-ls-bind','sync-syntax',syntax);console.info('debug-ls-bind','sync-syntax-parsed',parsedSyntax);console.info('debug-ls-bind','sync-value',element.value);}
for(let i=0;i= thresh && u < units.length - 1);
- return (
- $value.toFixed(1) +
- '' +
- units[u] +
- ""
- );
+ return $value.toFixed(1);
+ })
+ .add("humanFileUnit", function($value) {
+ if (!$value) {
+ return '';
+ }
+
+ let thresh = 1000;
+
+ if (Math.abs($value) < thresh) {
+ return 'B';
+ }
+
+ let units = ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
+ let u = -1;
+
+ do {
+ $value /= thresh;
+ ++u;
+ } while (Math.abs($value) >= thresh && u < units.length - 1);
+
+ return units[u];
})
.add("statsTotal", function($value) {
if (!$value) {
|