summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-18 03:59:13 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-11-18 03:59:13 +0000
commit68fa2ce84e3f511c589ab5ce27589ef5f1c982b4 (patch)
tree7c239bb119a8a77d70db5a389ffd234c73d3f35a
parent004fc9bb5ff316da1458ced0c1235d704b2f4f1b (diff)
Revising ->like
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@658 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Form.pm13
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%";
}