Changeset 775 for trunk


Ignore:
Timestamp:
Oct 29, 2022 4:33:45 AM (18 months ago)
Author:
anonymous
Message:

Minor improvements

Location:
trunk/lib
Files:
3 edited

Legend:

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

    r768 r775  
    15161516        if (!$this->running) {
    15171517            $this->logMsg(sprintf('Canceled %s, application not running.', __METHOD__), LOG_NOTICE, __FILE__, __LINE__);
    1518             return false;
     1518            $this->stop();
     1519            die;
    15191520        }
    15201521
  • trunk/lib/Auth_SQL.inc.php

    r757 r775  
    429429            WHERE " . $this->_params['db_username_column'] . " = '" . $db->escapeString($username) . "'
    430430        ");
    431         if (!$user_data = mysql_fetch_assoc($qid)) {
     431        if (mysql_num_rows($qid) !== 1 || !$user_data = mysql_fetch_assoc($qid)) {
    432432            $app->logMsg(sprintf('Username %s not found for authentication', $username), LOG_NOTICE, __FILE__, __LINE__);
    433433            return false;
     
    601601
    602602        // Session created! We're logged-in!
     603        $app->logMsg(sprintf('“%s” auth session created for user_id %s (%s): %s=%s', $this->_ns, $this->get('user_id'), $this->get('username'), session_name(), session_id()), LOG_DEBUG, __FILE__, __LINE__);
    603604        return true;
    604605    }
     
    612613     *  - remote address is the same as the login remote address
    613614     *
    614      * TODO: implement persisten sessions as per https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence
     615     * TODO: implement persistent sessions as per https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence
    615616     *
    616617     * @access public
  • trunk/lib/ImageThumb.inc.php

    r737 r775  
    297297            }
    298298            $this->_raiseMsg(sprintf(_("Resized %s images."), sizeof($files)), MSG_SUCCESS, __FILE__, __LINE__);
    299             $this->_raiseMsg(sprintf(_("Resized %s images."), sizeof($files)), MSG_SUCCESS, __FILE__, __LINE__);
    300299            return 0 === $return_val;
    301300        } else {
Note: See TracChangeset for help on using the changeset viewer.