]> code.citadel.org Git - citadel.git/commitdiff
* Fix to upload handler to recognize browser uploads based on *either* a "name"
authorArt Cancro <ajc@citadel.org>
Wed, 30 May 2001 22:37:09 +0000 (22:37 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 30 May 2001 22:37:09 +0000 (22:37 +0000)
  or a "filename" from the MIME parser.

webcit/ChangeLog
webcit/webcit.c

index df478c028dc4e7c166bacbf22d9e940a901bc22c..4f2e51c7f22662a19ffca2ed6176084af751a4bb 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 213.19  2001/05/30 22:37:09  ajc
+* Fix to upload handler to recognize browser uploads based on *either* a "name"
+  or a "filename" from the MIME parser.
+
 Revision 213.18  2001/05/30 01:06:57  ajc
 * Changes to mime parser ... still something wrong
 
@@ -562,3 +566,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 6cb40a0cfea647526d6e6c059ffcd6406464e272..23c3b9ba546f7109650c8f97f35f3e0cd7415e6e 100644 (file)
@@ -574,7 +574,7 @@ void upload_handler(char *name, char *filename, char *partnum, char *disp,
        fprintf(stderr, "    type = %s\n", cbtype);
        fprintf(stderr, "  length = %ld\n", (long)length);
 
-       if (strlen(name) > 0) {
+       if ( (strlen(name) > 0) || (strlen(filename) > 0) ) {
                WC->upload = malloc(length);
                if (WC->upload != NULL) {
                        WC->upload_length = length;