laravel-shift/curl-converter
View on GitHubBetter handling of values containing backslashes
Open
#20 opened on Oct 17, 2022
good first issue
Repository metrics
- Stars
- (93 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Currently backslashes (and possibly other characters) are being lost from values as they are passed through Artisan. These need to be escaped so they are preserved in the final output. An appropriately placed call to addslashes should to the trick.
Example curl command:
curl --request POST https://example.com/pdf/extract --header 'Content-Type: multipart/form-data' --form 'file=C:\Users\secret\files\007.pdf'