Aktueller Stand
This commit is contained in:
9
backend/node_modules/find-my-way/lib/url-sanitizer.js
generated
vendored
9
backend/node_modules/find-my-way/lib/url-sanitizer.js
generated
vendored
@@ -34,6 +34,15 @@ function decodeComponentChar (highCharCode, lowCharCode) {
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
* Safely decodes a URI path, preserving reserved characters in querystring.
|
||||
*
|
||||
* @param {string} path - The full request path, possibly including querystring.
|
||||
* @param {boolean} [useSemicolonDelimiter] - When true, also treat `;` as a query delimiter.
|
||||
* @returns {{ path: string, querystring: string, shouldDecodeParam: boolean }}
|
||||
* An object containing the decoded path, the raw querystring, and a flag indicating
|
||||
* whether any path parameters contain percent-encoded reserved characters.
|
||||
*/
|
||||
function safeDecodeURI (path, useSemicolonDelimiter) {
|
||||
let shouldDecode = false
|
||||
let shouldDecodeParam = false
|
||||
|
||||
Reference in New Issue
Block a user