Changeset 532 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Jul 13, 2015 8:11:33 PM (9 years ago)
Author:
anonymous
Message:

Added common config for codebase cli scripts. Changed behavior of db_auth.json loading. validSignature() now fails on empty string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r529 r532  
    349349            }
    350350
    351             // DB credentials for CLI scripts stored in a JSON file with read rights given only to the user who will be executing the scripts: -rw-------
    352             // But only if db_pass hasn't been defined yet by other means.
    353             if (defined('_CLI') && !$this->getParam('db_server') && !$this->getParam('db_name') && !$this->getParam('db_user') && !$this->getParam('db_pass')) {
     351            // DB credentials for CLI scripts stored in a JSON file with read rights given only to the user who will be executing the scripts: -r--------
     352            // But not if all DB credentials have been defined already by other means.
     353            if (defined('_CLI') && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) {
    354354                if (false !== $db_auth_file = stream_resolve_include_path($this->getParam('db_auth_file'))) {
    355355                    if (is_readable($db_auth_file)) {
Note: See TracChangeset for help on using the changeset viewer.