

                                   _JNJ`
                               .JNMH`
                              JMMF`       `;.
                            .NMM)          `MN.
                            MMM)            (MML
                           (MMM`             MMML
                     M  I  D  N  I  G  H  T    C  o  D  E
                           (NMMF             MHNH
                            NMML            .MMM
                             NMML          .NMH
                              4MMNL       .#F
                               `4HNNL_   `
                                   `"""`

                          Copyright (C) 2004-2007
       "Ian (Larry) Latter" <ian dot latter at midnightcode dot org>

    Midnight Code is a registered trademark of Ian Latter.

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, and mirrored at the Midnight Code web
    site; as at version 2 of the License only.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    General Public License for more details.

    You should have received a copy of the GNU General Public License
    (version 2) along with this program; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA, or see http://midnightcode.org/gplv2.txt


  -----------------------------------------------------------------------


  The included patch file was authored to allow CubeCart 3.0.13 to
  perform "whole word" or "exact word" searching.

  Exact word searching across products would allow the shopper to search
  for a term, such as "red" (in the hopes of find the desired product
  colour) without producing spurious match results, such as "credit"
  (which contains the word "red").

  This patch should be applied to includes/content/viewCat.inc.php

  Technically, the patch adds a regular-expression component to the
  MySQL search statement, to allow for searching on word boundaries.
  The patch also corrects one bug in the base code, that will allow
  for empty search terms to be processed (returning horrible results, if
  the user happened to place a space before or after their search query).

  This patch was first published October 29, 2006 at the following URL;

    http://www.cubecart.com/site/forums/index.php?showtopic=22499&
    st=0&gopid=110130&#entry110130


  -----------------------------------------------------------------------

