Closed nikhilverma360 closed 1 month ago
The recent change in the codebase involves updating the encodeURIFilter
function in the web/src/utils/uri.ts
. This update swaps the use of encodeURI
with encodeURIComponent
to handle the encoding of the filter
object string more accurately. This modification improves URL encoding by appropriately handling characters that encodeURI
might miss.
File | Change Summary |
---|---|
web/src/utils/uri.ts |
Updated encodeURIFilter function to use encodeURIComponent instead of encodeURI . |
🐰✨ In the realm of code, a change so slight, Swapping functions in the dead of night. Characters encoded, pristine, and clear,
encodeURIComponent
is what we hold dear. URL strings now gleam and glow, Onwards, developers, to the future we go! 🌍🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | 034a818179c317c7b9831d239c664a6ae4410a83 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2/deploys/667d6588dac08f0009c09086 |
Deploy Preview | https://deploy-preview-1625--kleros-v2.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 034a818179c317c7b9831d239c664a6ae4410a83 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-neo/deploys/667d658890b7aa0008a07129 |
Deploy Preview | https://deploy-preview-1625--kleros-v2-neo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 034a818179c317c7b9831d239c664a6ae4410a83 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-university/deploys/667d65882574070008fadd58 |
Deploy Preview | https://deploy-preview-1625--kleros-v2-university.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Code Climate has analyzed commit 034a8181 and detected 0 issues on this pull request.
View more on Code Climate.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
prevent app from crashing when we input special character ("/", "#")
reference :- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI#examples. (example section)
PR-Codex overview
The focus of this PR is to update the encoding and decoding methods for URI filters in
uri.ts
.Detailed summary
encodeURI
toencodeURIComponent
for filter encodingdecodeURI
todecodeURIComponent
for filter decodingSummary by CodeRabbit
encodeURIComponent
, ensuring better handling of special characters.