]> 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:51:30 +0000 (12:51 -0500)
commitf4365c898eab6678889431b49133bb94077298d3
tree876221ecf84f8bdc8272d0435dbb88b0de472d7f
parentfd53b3667a2e85ab53c60f1806cbe93d5b331497
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