]> git.evergreen-ils.org Git - OpenSRF.git/commit
Protect against empty/invalid log_protect sections
authorDan Wells <dbw2@calvin.edu>
Wed, 31 Oct 2012 14:21:14 +0000 (10:21 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 8 Nov 2012 17:48:40 +0000 (12:48 -0500)
commit705af84edadda570da5385db11e1f6aeb72857a9
treecf3bc637f7724b7b8505e636a47a37de54f12807
parentaca8b94f48acf751899a8a3f670a9555cf423872
Protect against empty/invalid log_protect sections

Connectivity would fail if the log_protect section of opensrf_core.xml
was empty, or contained only comments, as it does in the default
example. Add a simple guard against this potential problem.  This fix
will also protect against cases where the 'log_protect' section
contains text rather than separate configuration elements.

Credit to Dan Scott for finding the bug and working out how to fix it.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Dan Scott <dan@coffeecode.net>
src/perl/lib/OpenSRF/Application.pm