Skip to content

Commit

Permalink
fix: (regression beta) possible security problem with "basic" interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Oct 10, 2024
1 parent 06c5ee9 commit ff8a9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cross.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export async function promiseBestEffort<T>(promises: Promise<T>[]) {

// encode paths leaving / separator unencoded (not like encodeURIComponent), but still encode #
export function pathEncode(s: string) {
return s.replace(/[#'"% ?\\]/g, encodeURIComponent)
return s.replace(/[:&#'"% ?\\]/g, encodeURIComponent)
}
//unused function pathDecode(s: string) { return decodeURI(s).replace(/%23/g, '#') }

Expand Down

0 comments on commit ff8a9e9

Please sign in to comment.