Skip to content

Commit

Permalink
Update lib/ldp.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ted Thibodeau Jr <[email protected]>
  • Loading branch information
bourgeoa and TallTed authored Apr 3, 2023
1 parent 0f58634 commit f906322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ldp.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class LDP {
'PUT request requires a content-type via the Content-Type header')
}

// reject resource with % encoded $ extension
// reject resource with percent-encoded $ extension
const dollarExtensionRegex = /%(?:24)\.[^%(?:24)]*$/ // /\$\.[^$]*$/
if ((url.url || url).match(dollarExtensionRegex)) {
throw error(400, 'Resource with a $.ext is not allowed by the server')
Expand Down

0 comments on commit f906322

Please sign in to comment.