laravel-shift/curl-converter

Better handling of values containing backslashes

Aperta

#20 aperta il 17 ott 2022

 (5 commenti) (0 reazioni) (0 assegnatari)PHP (11 fork)user submission
good first issue

Metriche repository

Star
 (93 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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'

Guida contributor