mime: reject CR and LF in mail part name and filename

Closes #22247
This commit is contained in:
Alhuda Khan 2026-07-02 16:23:36 +05:30 committed by Daniel Stenberg
parent 02214d98f7
commit c3f9ef13f6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 165 additions and 1 deletions

View file

@ -284,7 +284,7 @@ test3100 test3101 test3102 test3103 test3104 test3105 test3106 \
test3200 test3201 test3202 test3203 test3204 test3205 test3206 test3207 \
test3208 test3209 test3210 test3211 test3212 test3213 test3214 test3215 \
test3216 test3217 test3218 test3219 test3220 test3221 test3222 \
test3223 test3224 test3225 test3226 \
test3223 test3224 test3225 test3226 test3227 \
\
test3300 test3301 test3302 test3303 test3304 test3305 \
\

20
tests/data/test3227 Normal file
View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
unittest
mime
SMTP
</keywords>
</info>
# Client-side
<client>
<features>
unittest
</features>
<name>
reject CR and LF in mail mime part name and filename
</name>
</client>
</testcase>