Test 1422 updated to verify.
Closes #1964
else
stop = ';';
+ /* scan for the end letter and stop there */
+ q = strchr(p, stop);
+ if(q)
+ *q = '\0';
+
/* if the filename contains a path, only use filename portion */
- q = strrchr(copy, '/');
+ q = strrchr(p, '/');
if(q) {
p = q + 1;
if(!*p) {
}
}
- /* scan for the end letter and stop there */
- for(q = p; *q; ++q) {
- if(*q == stop) {
- *q = '\0';
- break;
- }
- }
-
/* make sure the file name doesn't end in \r or \n */
q = strchr(p, '\r');
if(q)
Content-Length: 0\r
Connection: close\r
Content-Type: text/html\r
-Content-Disposition: filename=name1422; charset=funny; option=strange\r
+Content-Disposition: filename=name1422; charset=funny; option=str//nge\r
\r
</data>
</reply>