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/Utilities.inc.php

    r531 r532  
    10911091    $val = removeSignature($signed_val);
    10921092    // If the signed value matches the original signed value we consider the value safe.
    1093     if ($signed_val == addSignature($val, $salt, $length)) {
     1093    if ('' != $signed_val && $signed_val == addSignature($val, $salt, $length)) {
    10941094        // Signature verified.
    10951095        return true;
Note: See TracChangeset for help on using the changeset viewer.