summaryrefslogtreecommitdiff
path: root/fml/lib/Mail/Message
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-03-14 06:53:00 +0000
committerfukachan <fukachan>2003-03-14 06:53:00 +0000
commitcca71302c1489418d7d350bfdf815b310ccda34a (patch)
tree746772d15a868eefe44b1df9d59f530a07890793 /fml/lib/Mail/Message
parent15af1e02e9f101f9d7b8379a487bdad07a2b4b8b (diff)
downloadfml8-cca71302c1489418d7d350bfdf815b310ccda34a.tar.gz
fml8-cca71302c1489418d7d350bfdf815b310ccda34a.tar.bz2
fml8-cca71302c1489418d7d350bfdf815b310ccda34a.zip
validate input
Diffstat (limited to 'fml/lib/Mail/Message')
-rw-r--r--fml/lib/Mail/Message/Date.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/fml/lib/Mail/Message/Date.pm b/fml/lib/Mail/Message/Date.pm
index a1d55e45..819e6c51 100644
--- a/fml/lib/Mail/Message/Date.pm
+++ b/fml/lib/Mail/Message/Date.pm
@@ -2,7 +2,7 @@
#
# Copyright (C) 2000,2001,2002,2003 Ken'ichi Fukamachi
#
-# $FML: Date.pm,v 1.18 2003/01/11 15:16:35 fukachan Exp $
+# $FML: Date.pm,v 1.19 2003/01/26 03:23:10 fukachan Exp $
#
package Mail::Message::Date;
@@ -291,6 +291,10 @@ sub date_to_unixtime
my (%month);
my ($zone);
+ # cheap sanity, but ok?;)
+ return 0 unless defined $in;
+ return 0 unless $in;
+
# XXX-TODO: method-ify date_to_unixtime() ?
# XXX-TODO: more documents