X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_dbd%2Fdb_op.h;h=a6031fcd7512ea22c404eeb8751f54f2b242ea70;hp=fdbe101731e09c0dc3b71b5db0cebd9fa8c39895;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/os_dbd/db_op.h b/src/os_dbd/db_op.h index fdbe101..a6031fc 100755 --- a/src/os_dbd/db_op.h +++ b/src/os_dbd/db_op.h @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/os_dbd/db_op.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. @@ -11,7 +12,7 @@ * License details at the LICENSE file included with OSSEC or * online at: http://www.ossec.net/en/licensing.html */ - + /* Common API for dealing with databases */ @@ -49,11 +50,12 @@ void osdb_escapestr(char *str); * Available chars: a-z, A-Z, 0-9, -, _, ., %, $, @, (, ), +, *, / * Basically: 040-046 (oct) * 050-176 (oct) + * 8/27/2012: Modified to allow new lines - \012 */ static const unsigned char insert_map[] = { '\000', '\000', '\002', '\003', '\004', '\005', '\006', '\007', - '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017', + '\010', '\011', '\001', '\013', '\014', '\015', '\016', '\017', '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027', '\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037', '\001', '\001', '\001', '\001', '\001', '\001', '\001', '\047',