Skip to content

Conversation

@thc202
Copy link
Member

@thc202 thc202 commented Mar 28, 2023

Use --data-raw instead of data-binary which does not allow local file inclusion in the body.
Warn when file inclusion is being done in a custom header and do not add the generated command to the clipboard (there does not seem to be an alternative argument that does not use the @file syntax).

Thanks to James Kettle (@albinowax) for reporting.

@kingthorin
Copy link
Member

Thanks @thc202, sorry I shoulda read through things before commenting in my previous review 😉

Use `--data-raw` instead of `data-binary` which does not allow local
file inclusion in the body.
Warn when file inclusion is being done in a custom header and do not
add the generated command to the clipboard (there does not seem to be
an alternative argument that does not use the `@file` syntax).

Thanks to James Kettle (@albinowax) for reporting.

Signed-off-by: thc202 <thc202@gmail.com>
@thc202
Copy link
Member Author

thc202 commented Mar 28, 2023

Pushed to trigger CI and to check the header trimmed (since it's being added that way).

@thc202 thc202 requested review from kingthorin and psiinon March 28, 2023 16:16
@psiinon psiinon merged commit 87dce81 into zaproxy:main Mar 28, 2023
thc202 added a commit to thc202/zap-extensions that referenced this pull request Mar 28, 2023
Apply changes done in zaproxy/community-scripts#319.

Signed-off-by: thc202 <thc202@gmail.com>
thc202 added a commit to thc202/zap-extensions that referenced this pull request Mar 28, 2023
Apply changes done in zaproxy/community-scripts#319.

Signed-off-by: thc202 <thc202@gmail.com>
thc202 added a commit to thc202/zap-extensions that referenced this pull request Mar 28, 2023
Apply changes done in zaproxy/community-scripts#319 and sync the
script.

Signed-off-by: thc202 <thc202@gmail.com>
@thc202 thc202 deleted the fix-curl-file branch March 28, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants