Просмотр исходного кода

Merge pull request #2799 from kfear1337/CodeQL-Report

Yifei Zhang 1 год назад
Родитель
Сommit
461e48be32
1 измененных файлов с 6 добавлено и 1 удалено
  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);