Skip to content
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

Forms and Data Handling: <Small typo in code> #29215

Open
3 tasks done
mhamza-khalid opened this issue Dec 20, 2024 · 2 comments
Open
3 tasks done

Forms and Data Handling: <Small typo in code> #29215

mhamza-khalid opened this issue Dec 20, 2024 · 2 comments
Labels
Status: Stale This issue/PR has been inactive for over 30 days and will be closed if inactivity continues

Comments

@mhamza-khalid
Copy link
Contributor

mhamza-khalid commented Dec 20, 2024

Checks

Describe your suggestion

There is a small typo (https://www.theodinproject.com/lessons/nodejs-forms-and-data-handling#escaping-user-input) here.

`<div>
  About Me: <%- description %>    
  ^^ The typo is here: There should be a '!' at the end (after %>) to remain consistent with the following code in this section
</div>

// The client then inputs the following as their page's About Me:
<script>alert("Hacked!");</script>
When unescaped, this would be rendered into HTML as:

<div>
  About Me: <script>alert("Hacked!");</script>!
</div>`

Path

Node / JS

Lesson Url

https://www.theodinproject.com/lessons/nodejs-forms-and-data-handling

(Optional) Discord Name

No response

(Optional) Additional Comments

No response

@CouchofTomato
Copy link
Member

If you think there is a typo then you can just open a PR to fix it please since you've indicated you would like to work on the issue :)

Copy link

This issue is stale because it has had no activity for the last 30 days.

@github-actions github-actions bot added the Status: Stale This issue/PR has been inactive for over 30 days and will be closed if inactivity continues label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale This issue/PR has been inactive for over 30 days and will be closed if inactivity continues
Projects
None yet
Development

No branches or pull requests

2 participants