-
Notifications
You must be signed in to change notification settings - Fork 6
🐿️🌵 ↝ [SSG-173]: Uploads & Earth Events #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… new table for life entities
…the pokedex classification
…ts to biome types
…tor, continued works on Mars aggregation
…fixing biome/weather/trait aggregation return in biome aggregation
…us sunspot slider integrated into mission flow
…r aggregation passed
|
Gizmotronn
left a comment
There was a problem hiding this 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
Show autofix suggestion
Hide autofix suggestion
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.
- Validate the
previewvariable to ensure it is a valid blob URL. - Update the code to include this validation before setting the
srcattribute of theimgtag.
-
Copy modified lines R248-R249
| @@ -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" /> | ||
| ) : ( |
Timer...begun with the classification count
Earth uploads - working - [ SSC-31 ]
Trait mapping
New projects (CoM:Shapes, Sunspots overhauled)