Skip to content

Commit 778cac1

Browse files
committed
Always sanitize the source contents during profile sanitization
1 parent e41e1b6 commit 778cac1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/profile-logic/sanitize.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ export function sanitizePII(
126126
stringArray,
127127
};
128128

129+
// FIXME: Currently we always sanitize the source contents while publishing.
130+
// But we should have a sharing option in the publish panel to be able to
131+
// include sources.
132+
newShared.sources = {
133+
...newShared.sources,
134+
content: Array(newShared.sources.content.length).fill(null),
135+
};
136+
129137
let stackFlags: Uint8Array | null = null;
130138

131139
if (windowIdFromPrivateBrowsing.size > 0) {

0 commit comments

Comments
 (0)