Ticket #16864: patch

File patch, 704 bytes (added by marcel.dancak@…, 13 years ago)

patch

  • django/contrib/gis/geometry/regex.py

    old new  
    44# to prevent potentially malicious input from reaching the underlying C
    55# library.  Not a substitute for good Web security programming practices.
    66hex_regex = re.compile(r'^[0-9A-F]+$', re.I)
    7 wkt_regex = re.compile(r'^(SRID=(?P<srid>\d+);)?'
     7wkt_regex = re.compile(r'^(SRID=(?P<srid>\-?\d+);)?'
    88                       r'(?P<wkt>'
    99                       r'(?P<type>POINT|LINESTRING|LINEARRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)'
    1010                       r'[ACEGIMLONPSRUTYZ\d,\.\-\(\) ]+)$',
Back to Top