diff options
Diffstat (limited to 'LedgerSMB/Form.pm')
-rwxr-xr-x | LedgerSMB/Form.pm | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 97c2704f..6617edcd 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -2290,18 +2290,7 @@ sub current_date { sub like { my ($self, $str) = @_; - - if ($str !~ /(%|_)/) { - - if ($str =~ /(^").*("$)/) { - $str =~ s/(^"|"$)//g; - } else { - $str = "%$str%"; - } - } - - $str =~ s/'/''/g; - $str; + "%$str%"; } |