Commit 22cf036
committed
fix(resolve): strip orgSlug from projectData to prevent JSON output leak
ProjectWithOrg (from findProjectsBySlug) carries an extra orgSlug field.
When callers spread projectData into JSON output, this leaked an
inconsistent field depending on the resolution path. Destructure out
orgSlug before assigning to projectData so it's a clean SentryProject.1 parent 4bf9cb8 commit 22cf036
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1009 | 1012 | | |
1010 | 1013 | | |
1011 | 1014 | | |
1012 | | - | |
| 1015 | + | |
1013 | 1016 | | |
1014 | 1017 | | |
1015 | 1018 | | |
| |||
1154 | 1157 | | |
1155 | 1158 | | |
1156 | 1159 | | |
1157 | | - | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1158 | 1166 | | |
1159 | 1167 | | |
1160 | 1168 | | |
| |||
0 commit comments