codi.link icon indicating copy to clipboard operation
codi.link copied to clipboard

Fixed a bug in the path when passing a value that is not encoded in base 64

Open hebertdev opened this issue 3 years ago • 1 comments

when passing a non-encoded value in base 64 and also when passing a value encoded but not with the expected values ​​and separated by "%7C" the application is interrupted

image

image

my solution to this error was a simple regular expression that validates that the route we pass to it is one that the application accepts and if it does not comply with the condition it clears the values ​​and the route is put in the origin "/"

hebertdev avatar Oct 21 '21 22:10 hebertdev

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/midudev-pro/codi-link/3gU4NgtDFduqcUFw1GwSkJuh5eMF
✅ Preview: https://codi-link-git-fork-hebertdev-main-midudev-pro.vercel.app

vercel[bot] avatar Oct 21 '21 22:10 vercel[bot]