jafayer / DinoDNS

https://dinodns.dev
2 stars 0 forks source link

Fix code scanning alert no. 2: Incomplete string escaping or encoding #6

Closed jafayer closed 1 month ago

jafayer commented 1 month ago

Fixes https://github.com/jafayer/DinoDNS/security/code-scanning/2

To fix the problem, we need to ensure that all occurrences of the wildcard character * in record.name are replaced. This can be achieved by using a regular expression with the global flag (g). This ensures that every instance of the wildcard character is replaced, not just the first one.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.