[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [658] trunk/LedgerSMB/Form.pm



Revision: 658
          http://svn.sourceforge.net/ledger-smb/?rev=658&view=rev
Author:   einhverfr
Date:     2006-11-17 19:59:13 -0800 (Fri, 17 Nov 2006)

Log Message:
-----------
Revising ->like

Modified Paths:
--------------
    trunk/LedgerSMB/Form.pm

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2006-11-18 02:21:34 UTC (rev 657)
+++ trunk/LedgerSMB/Form.pm	2006-11-18 03:59:13 UTC (rev 658)
@@ -2290,18 +2290,7 @@
 sub like {
 
 	my ($self, $str) = @_;
-
-	if ($str !~ /(%|_)/) {
-
-		if ($str =~ /(^").*("$)/) {
-			$str =~ s/(^"|"$)//g; 
-		} else { 
-			$str = "%$str%";
-		}
-	}
-
-	$str =~ s/'/''/g;
-	$str;
+	"%$str%";
 }
 
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.