Skip to content

Commit 1b2f0b4

Browse files
committed
as_string should not return undef
1 parent efae8c7 commit 1b2f0b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/CGI/Info.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,9 @@ sub as_string
14031403
} sort keys %{$params};
14041404
}
14051405

1406-
$self->_trace("as_string: returning '$rc'") if($rc);
1406+
$rc ||= '';
1407+
1408+
$self->_trace("as_string: returning '$rc'");
14071409

14081410
return $rc;
14091411
}

0 commit comments

Comments
 (0)