phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: notes/inc class.so.inc.php,1.2,1.3


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: notes/inc class.so.inc.php,1.2,1.3
Date: Tue, 07 May 2002 08:59:51 -0400

Update of /cvsroot/phpgroupware/notes/inc
In directory subversions:/tmp/cvs-serv23736/notes/inc

Modified Files:
        class.so.inc.php 
Log Message:
May need some work, but try to trap quotes in a search



Index: class.so.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/notes/inc/class.so.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.so.inc.php    10 Dec 2001 01:00:27 -0000      1.2
--- class.so.inc.php    7 May 2002 12:59:48 -0000       1.3
***************
*** 42,46 ****
                                        }
                                        reset($public_user_list);
!                                       $filtermethod .= " OR 
(note_access='public' AND note_owner in(" . implode(',',$public_user_list) . 
")))";
                                }
                                else
--- 42,46 ----
                                        }
                                        reset($public_user_list);
!                                       $filtermethod .= " OR 
(note_access='public' AND note_owner IN(" . implode(',',$public_user_list) . 
")))";
                                }
                                else
***************
*** 63,69 ****
                        }
  
!                       if ($search)
                        {
!                               $searchmethod = " AND note_content like 
'%$search%'";
                        }
  
--- 63,72 ----
                        }
  
!                       if($search)
                        {
!                               $search = ereg_replace("'",'',$search);
!                               $search = ereg_replace('"','',$search);
! 
!                               $searchmethod = " AND note_content LIKE 
'%$search%'";
                        }
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]