summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmu <tmu>2003-04-15 12:24:47 +0000
committertmu <tmu>2003-04-15 12:24:47 +0000
commitf511a32e5c36f9a16f5f33373c2f24cd3d413055 (patch)
tree15cffd566914822726dbdbd020994bbd19138704
parent30a875cfa65f522a7d8012592bf51df9eef948ea (diff)
downloadfml8-f511a32e5c36f9a16f5f33373c2f24cd3d413055.tar.gz
fml8-f511a32e5c36f9a16f5f33373c2f24cd3d413055.tar.bz2
fml8-f511a32e5c36f9a16f5f33373c2f24cd3d413055.zip
mime_boundary() boundary detect change short match and add no quote string
-rw-r--r--fml/lib/FML/Header.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/fml/lib/FML/Header.pm b/fml/lib/FML/Header.pm
index e9e1ebc3..d33d3c07 100644
--- a/fml/lib/FML/Header.pm
+++ b/fml/lib/FML/Header.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Header.pm,v 1.55 2003/03/14 03:50:18 fukachan Exp $
+# $FML: Header.pm,v 1.56 2003/04/08 15:41:42 tmu Exp $
#
package FML::Header;
@@ -198,9 +198,13 @@ sub mime_boundary
my $content_type = $header->get('content-type');
if (defined $content_type) {
- if ($content_type =~ /boundary=\"(.*)\"/) {
+ if ($content_type =~ /boundary=\"(.*?)\"/) {
return $1;
}
+ if ($content_type =~ /boundary=([^\s\(\)\<\>\@\,\;\:\\\"\/\[\]\?\=]+)/) {
+ return $1;
+ }
+
}
return undef;