Skip to content

Commit

Permalink
GDB-8425 Fix user manipulations with special chars in firefox (#1030)
Browse files Browse the repository at this point in the history
## What
Removed . from fixedEncodeURIComponent function which replaces chars from path params

## Why
This causes . to be encoded and spring security has problem with that

## How
- removed . from regex
  • Loading branch information
yordanalexandrov authored Sep 20, 2023
1 parent 829b173 commit 44c30bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/angular/rest/security.rest.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function SecurityRestService($http) {
* @returns {string} The provided string encoded as a URI component.
*/
function fixedEncodeURIComponent(str) {
return encodeURIComponent(str).replace(/[.!'()*]/g, function (c) {
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
return '%' + c.charCodeAt(0).toString(16);
});
}
Expand Down

0 comments on commit 44c30bb

Please sign in to comment.