was bound to happen sooner or later.
users uploading files with apostrophes (') in the filename, whch is now breaking a JS function to view the file.what’s recommended, I was thinking of using “htmlspecialchars” ?eg:
$safeFileName = htmlspecialchars($presignedUrl, ENT_QUOTES);would the result need to be decoded at the endpoint as well?thanks,
sticcino wrote:
users uploading files with apostrophes (') in the filename, whch is now breaking a JS function to view the file.
Breaking JS function to view the file? You may post more details for discussion.
sticcino wrote:
what’s recommended, I was thinking of using “htmlspecialchars” ?
You may rename the file name that suits your business-logic by using Row_Inserting and/or Row_Updating server event.