projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d7a863
)
Protect utf8param() from undefined values.
author
Mike Taylor
<mike@indexdata.com>
Wed, 27 Jun 2007 10:44:57 +0000
(10:44 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 27 Jun 2007 10:44:57 +0000
(10:44 +0000)
lib/ZOOM/IRSpy/Utils.pm
patch
|
blob
|
history
diff --git
a/lib/ZOOM/IRSpy/Utils.pm
b/lib/ZOOM/IRSpy/Utils.pm
index
82c7ece
..
2dbbe13
100644
(file)
--- a/
lib/ZOOM/IRSpy/Utils.pm
+++ b/
lib/ZOOM/IRSpy/Utils.pm
@@
-1,4
+1,4
@@
-# $Id: Utils.pm,v 1.32 2007-05-11 13:54:42 mike Exp $
+# $Id: Utils.pm,v 1.33 2007-06-27 10:44:57 mike Exp $
package ZOOM::IRSpy::Utils;
@@
-35,6
+35,7
@@
sub utf8param {
die "utf8param() called with value '$value'" if defined $value;
my $raw = $r->param($key);
+ return undef if !defined $raw;
my $cooked = decode_utf8($raw);
warn "converted '$raw' to '", $cooked, "'\n" if $cooked ne $raw;
return $cooked;