Changeset 5214


Ignore:
Timestamp:
21/04/09 16:11:24 (10 years ago)
Author:
cbyrom
Message:

Add additional error reporting when illegal characters entered.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/controllers/home.py

    r5199 r5214  
    6262        except Exception, e: 
    6363            c.xml = 'Unexpected error [%s] whilst rendering page' %str(e) 
     64            if str(e).find('malformed start tag') >-1: 
     65                c.xml += " - NB, this is probably due to illegal HTML being entered" 
    6466            c.doc = '' 
    6567            response.status_code = 400 
Note: See TracChangeset for help on using the changeset viewer.