Browse Source

Merge pull request #2799 from kfear1337/CodeQL-Report

Yifei Zhang 1 year ago
parent
commit
461e48be32
1 changed files with 6 additions and 1 deletions
  1. 6 1
      app/store/sync.ts

+ 6 - 1
app/store/sync.ts

@@ -56,7 +56,12 @@ export const useSyncStore = createPersistStore(
           method: "PROFIND",
           headers: this.headers(),
         });
-        console.log(res);
+        const sanitizedRes = {
+          status: res.status,
+          statusText: res.statusText,
+          headers: res.headers,
+        };
+        console.log(sanitizedRes);
         return res.status === 207;
       } catch (e) {
         console.error("[Sync] ", e);