WebGUI::Form::Url::getValue returns blank rather than undef for blank fields
This commit is contained in:
parent
0a8cf1c9f7
commit
3bbc8a7d4b
2 changed files with 2 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ sub getValue {
|
|||
$value =~ tr/\r\n//d;
|
||||
# empty
|
||||
if ($value eq "" || $value =~ m{^http://$}i) {
|
||||
return undef;
|
||||
return "";
|
||||
}
|
||||
# proper email url
|
||||
elsif ($value =~ /mailto:/) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue