-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hotfix/gepgerrorhandling and clinic medication on dose #490
Conversation
@@ -356,6 +356,8 @@ | |||
parametersString += `&includeInactive=true`; | |||
} | |||
// | |||
|
|||
console.log("url fired ...",`icare/visit?${parametersString.replace("&","" )}&startIndex=${startIndex}&limit=${limit}`); |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 2 months ago
To fix the problem, we need to ensure that all occurrences of the &
character in parametersString
are replaced. This can be achieved by using a regular expression with the global flag (g
). This change will ensure that every instance of &
is replaced, not just the first one.
-
Copy modified line R360 -
Copy modified lines R372-R375
@@ -359,3 +359,3 @@ | ||
|
||
console.log("url fired ...",`icare/visit?${parametersString.replace("&","" )}&startIndex=${startIndex}&limit=${limit}`); | ||
console.log("url fired ...",`icare/visit?${parametersString.replace(/&/g,"" )}&startIndex=${startIndex}&limit=${limit}`); | ||
return ( | ||
@@ -371,6 +371,6 @@ | ||
: this.httpClient.get( | ||
`icare/visit?${parametersString.replace( | ||
"&", | ||
"" | ||
)}&startIndex=${startIndex}&limit=${limit}` | ||
`icare/visit?${parametersString.replace( | ||
/&/g, | ||
"" | ||
)}&startIndex=${startIndex}&limit=${limit}` | ||
) |
No description provided.