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
|
|
@ -1,4 +1,5 @@
|
||||||
7.6.10
|
7.6.10
|
||||||
|
- fixed #9577: WebGUI::Form::Url::getValue returns blank rather than undef for blank fields
|
||||||
- added test for splitTag function recently added to HTML module
|
- added test for splitTag function recently added to HTML module
|
||||||
- fixed #9455: fixed synopsis to pick out html paragraphs, fixed FeedPP fields to scalar when blank
|
- fixed #9455: fixed synopsis to pick out html paragraphs, fixed FeedPP fields to scalar when blank
|
||||||
- fixed: With autocommit and no comments on, making a shortcut of an asset takes you to that asset's view.
|
- fixed: With autocommit and no comments on, making a shortcut of an asset takes you to that asset's view.
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ sub getValue {
|
||||||
$value =~ tr/\r\n//d;
|
$value =~ tr/\r\n//d;
|
||||||
# empty
|
# empty
|
||||||
if ($value eq "" || $value =~ m{^http://$}i) {
|
if ($value eq "" || $value =~ m{^http://$}i) {
|
||||||
return undef;
|
return "";
|
||||||
}
|
}
|
||||||
# proper email url
|
# proper email url
|
||||||
elsif ($value =~ /mailto:/) {
|
elsif ($value =~ /mailto:/) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue