a-luna / aaronluna.dev

My personal website/blog/portfolio, built with Hugo
https://aaronluna.dev
3 stars 1 forks source link

Escape user input and handle 404 for index.json #288

Closed sergeyklay closed 9 months ago

sergeyklay commented 2 years ago

Hello, there are 2 fixes.

The first one is for the cases when there is no index.json.

The second fix is designed to protect RegExp from throwing an exception in case of entering characters that are used by the syntax of regular expressions.

Screenshot 2022-07-10 at 15 03 39
sergeyklay commented 2 years ago

@a-luna Could you please take a look?

a-luna commented 9 months ago

I am so sorry for not seeing this earlier, thank you for making these changes!

sergeyklay commented 9 months ago

You're welcome :)