Changeset 1509

Show
Ignore:
Timestamp:
03/27/08 10:37:50 (8 months ago)
Author:
JensDiemer
Message:

unitest security: comment some variants out (makes the test faster).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/tests/security.py

    r1507 r1509  
    4040#    "&#60", "&#060", "&#0060", "&#00060", "&#000060", "&#0000060", "<", 
    4141#    "<", "<", "<", "<", "<", 
    42     "&#x3c", "&#x03c", "&#x003c", "&#x0003c", "&#x00003c", "&#x000003c", 
     42#    "&#x3c", "&#x03c", "&#x003c", "&#x0003c", "&#x00003c", "&#x000003c", 
    4343#    "<", "<", "<", "<", "<", "<", 
    4444#    "&#X3c", "&#X03c", "&#X003c", "&#X0003c", "&#X00003c", "&#X000003c", 
     
    8686 
    8787SQL_INJECTIONS = ( 
    88     "DROP TABLE PyLucid_page;", 
    89     "; DROP TABLE PyLucid_page;", 
     88#    "DROP TABLE PyLucid_page;", 
     89#    "; DROP TABLE PyLucid_page;", 
    9090 
    9191    '"DROP TABLE PyLucid_page;"', 
     
    9494    "'; DROP TABLE PyLucid_page;'", 
    9595 
    96     '\"DROP TABLE PyLucid_page;\"', 
    97     '\"; DROP TABLE PyLucid_page;\"', 
    98     "\'DROP TABLE PyLucid_page;\'", 
    99     "\'; DROP TABLE PyLucid_page;\'", 
    100  
    101     # SEMICOLON 
    102     "\x3B DROP TABLE PyLucid_page\x3B", 
    103     u"\u003B DROP TABLE PyLucid_page\u003B", 
    104  
    105     # QUOTATION MARK 
    106     "\x22DROP TABLE PyLucid_page;\x22", 
    107     "\x22; DROP TABLE PyLucid_page;\x22", 
    108     u"\u0022DROP TABLE PyLucid_page;\u0022", 
    109     u"\u0022; DROP TABLE PyLucid_page;\u0022", 
    110  
    111     # APOSTROPHE 
    112     "\x27DROP TABLE PyLucid_page;\x27", 
    113     "\x27; DROP TABLE PyLucid_page;\x27", 
    114     u"\u0027DROP TABLE PyLucid_page;\u0027", 
    115     u"\u0027; DROP TABLE PyLucid_page;\u0027", 
    116  
    117     # GRAVE ACCENT 
    118     "\x60DROP TABLE PyLucid_page;\x60", 
    119     "\x60; DROP TABLE PyLucid_page;\x60", 
    120     u"\u0060DROP TABLE PyLucid_page;\u0060", 
    121     u"\u0060; DROP TABLE PyLucid_page;\u0060", 
     96#    '\"DROP TABLE PyLucid_page;\"', 
     97#    '\"; DROP TABLE PyLucid_page;\"', 
     98#    "\'DROP TABLE PyLucid_page;\'", 
     99#    "\'; DROP TABLE PyLucid_page;\'", 
     100# 
     101#    # SEMICOLON 
     102#    "\x3B DROP TABLE PyLucid_page\x3B", 
     103#    u"\u003B DROP TABLE PyLucid_page\u003B", 
     104# 
     105#    # QUOTATION MARK 
     106#    "\x22DROP TABLE PyLucid_page;\x22", 
     107#    "\x22; DROP TABLE PyLucid_page;\x22", 
     108#    u"\u0022DROP TABLE PyLucid_page;\u0022", 
     109#    u"\u0022; DROP TABLE PyLucid_page;\u0022", 
     110# 
     111#    # APOSTROPHE 
     112#    "\x27DROP TABLE PyLucid_page;\x27", 
     113#    "\x27; DROP TABLE PyLucid_page;\x27", 
     114#    u"\u0027DROP TABLE PyLucid_page;\u0027", 
     115#    u"\u0027; DROP TABLE PyLucid_page;\u0027", 
     116# 
     117#    # GRAVE ACCENT 
     118#    "\x60DROP TABLE PyLucid_page;\x60", 
     119#    "\x60; DROP TABLE PyLucid_page;\x60", 
     120#    u"\u0060DROP TABLE PyLucid_page;\u0060", 
     121#    u"\u0060; DROP TABLE PyLucid_page;\u0060", 
    122122) 
    123123