From: phasefx Date: Tue, 8 Aug 2006 17:31:55 +0000 (+0000) Subject: more filtering X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9a8f220f429a37130caa6653acdf06b85abf207c;p=Evergreen.git more filtering git-svn-id: svn://svn.open-ils.org/ILS/trunk@5373 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/search_form.js b/Open-ILS/xul/staff_client/server/patron/search_form.js index 4181e02147..507515a6de 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_form.js +++ b/Open-ILS/xul/staff_client/server/patron/search_form.js @@ -220,11 +220,15 @@ patron.search_form.prototype = { } if (id == 'inactive') { query += id + '=' + window.escape(node.getAttribute('value')); - dump('id = ' + id + ' value = ' + node.getAttribute('value') + '\n'); + obj.error.sdump('D_DEBUG','id = ' + id + ' value = ' + node.getAttribute('value') + '\n'); } else { var value = node.value.replace(/^\s+/,'').replace(/[\\\s]+$/,''); - query += id + '=' + window.escape(value); - dump('id = ' + id + ' value = ' + value + '\n'); + value = value.replace(/\d/g,''); + value = value.replace(/[^\w\s]/g,''); + if (value != '') { + query += id + '=' + window.escape(value); + obj.error.sdump('D_DEBUG','id = ' + id + ' value = ' + value + '\n'); + } } } }