UniversityOfSaskatchewanCMPT371 / term-project-2024-team-4

Apache License 2.0
2 stars 2 forks source link

Character code displayed rather than Character in Catalogue name #138

Open fbl773 opened 5 months ago

fbl773 commented 5 months ago

Recreation Steps

  1. Create a new Catalogue
  2. Use a character in the name (i.e. ')
  3. OBSERVE --> Character comes out as ' Screenshot 2024-04-05 at 10 18 33 AM

Not your problem now friends, Excellent work on the app. The heavy lifting is all done. I'm Excited to get started on polishing and shaping it!

lecegues commented 5 months ago

Refer to backend/middleware/sanitize.js, a file that sanitizes incoming data. I believe that incoming special characters are stored as escaped characters in the database, however is being processed by the frontend as a full string instead of decoding the escaped characters.

Possible Solution: Utility function in frontend to decode incoming data