Changeset 953 for trunk/cgi-bin


Ignore:
Timestamp:
08/02/24 13:03:48 (3 months ago)
Author:
Kris Deugau
Message:

/trunk

Commit interim patch supressing regex matching in "description" searches.
This may still be desirable/useful but it's a pretty rare edge case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/search.cgi

    r935 r953  
    33##
    44# $Id$
    5 # Copyright 2005-2010,2012,2015-2017,2022 - Kris Deugau <kdeugau@deepnet.cx>
     5# Copyright 2005-2010,2012,2015-2017,2022,2024 - Kris Deugau <kdeugau@deepnet.cx>
    66#
    77#    This program is free software: you can redistribute it and/or modify
     
    414414
    415415    print qq(<div class="heading">Searching for description, customer ID, or circuit ID matching '$query'</div><br>\n);
     416##fixme:  suppress regex handling of ()[]
     417$query =~ s/([()\[\]])/\\$1/g;
    416418    # Query based on description (includes "name" from old DB).
    417419    $sql = "$sqlbase WHERE s.description ~* ? OR s.custid ~* ? OR s.circuitid ~* ?";
Note: See TracChangeset for help on using the changeset viewer.