Changeset 1162 for trunk/tests


Ignore:
Timestamp:
12/15/11 16:00:09 (5 months ago)
Author:
bogdan2412
Message:

More fixes from live.

  • Fix 500 errors appearing when attachment name contained ilegal characters.

(was not security issue, only failing assert)

  • Fix 500 errors appearing when textblock revision was not an integer

(was not security issue, got converted into integer -1 and caused mysql
syntax error)

  • Fix coding style, variable name mismatch and memory leak in userwidget view.
  • Fix bug in account controller when trying to change user's security level.
  • Do not allow tests to be run if not in development mode.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/utilities.php

    r1091 r1162  
    66require_once(IA_ROOT_DIR."common/db/db.php"); 
    77require_once(IA_ROOT_DIR."common/db/user.php"); 
     8 
     9if (!IA_DEVELOPMENT_MODE) { 
     10    // These tests alter the database and can remove user created content 
     11    // by mistake (it has happened in the past). 
     12    log_error("You should never run these tests in a production environment"); 
     13} 
    814 
    915// Test with curl. $args format: 
Note: See TracChangeset for help on using the changeset viewer.