Skip to content

Conversation

@Gizmotronn
Copy link
Member

Timer...begun with the classification count
Earth uploads - working - [ SSC-31 ]
Trait mapping
New projects (CoM:Shapes, Sunspots overhauled)

…fixing biome/weather/trait aggregation return in biome aggregation
@height
Copy link

height bot commented Mar 24, 2025

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Copy link
Member Author

@Gizmotronn Gizmotronn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bridging from #179 ...let's get to work on planning the next sprint now.

…M text reinterpreted as HTML

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
}}
/>
) : preview ? (
<img src={preview ? preview : "/placeholder.svg"} alt="Preview" className="w-full h-full object-cover" />

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium test

DOM text
is reinterpreted as HTML without escaping meta-characters.

Copilot Autofix

AI 11 months ago

To fix the problem, we need to ensure that the preview variable is properly validated before being used in the src attribute of the img tag. We can achieve this by checking that the preview variable is a valid blob URL. This will prevent any malicious input from being interpreted as HTML or JavaScript.

  1. Validate the preview variable to ensure it is a valid blob URL.
  2. Update the code to include this validation before setting the src attribute of the img tag.
Suggested changeset 1
app/tests/pleaseWork.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/app/tests/pleaseWork.tsx b/app/tests/pleaseWork.tsx
--- a/app/tests/pleaseWork.tsx
+++ b/app/tests/pleaseWork.tsx
@@ -247,4 +247,4 @@
               />
-            ) : preview ? (
-              <img src={preview ? preview : "/placeholder.svg"} alt="Preview" className="w-full h-full object-cover" />
+            ) : preview && preview.startsWith("blob:") ? (
+              <img src={preview} alt="Preview" className="w-full h-full object-cover" />
             ) : (
EOF
@@ -247,4 +247,4 @@
/>
) : preview ? (
<img src={preview ? preview : "/placeholder.svg"} alt="Preview" className="w-full h-full object-cover" />
) : preview && preview.startsWith("blob:") ? (
<img src={preview} alt="Preview" className="w-full h-full object-cover" />
) : (
Copilot is powered by AI and may make mistakes. Always verify output.
@Gizmotronn Gizmotronn merged commit 501aabe into main Mar 24, 2025
7 checks passed
@Gizmotronn Gizmotronn deleted the SSG-173 branch March 24, 2025 07:43
Gizmotronn added a commit that referenced this pull request Mar 31, 2025
🖋️🦽 ↝ [SSG-174]: Checkback & Interactive Events

#179 #180 #181
Gizmotronn added a commit that referenced this pull request Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant