~ubuntu-branches/ubuntu/precise/python-django/precise

« back to all changes in this revision

Viewing changes to django/contrib/gis/geometry/regex.py

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2011-02-17 13:34:07 UTC
  • mfrom: (1.1.13 upstream) (4.4.12 sid)
  • Revision ID: james.westby@ubuntu.com-20110217133407-rwr88elhhq6j7ba0
Tags: 1.2.5-1ubuntu1
* Merge from Debian for security fixes (LP: #719031). Remaining changes:
  - debian/control: don't Build-Depends on locales-all, which doesn't exist
    in natty
* Drop the following patches, now included upstream:
  - debian/patches/07_security_admin_infoleak.diff
  - debian/patches/08_security_pasword_reset_dos.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# Regular expression for recognizing HEXEWKB and WKT.  A prophylactic measure
4
4
# to prevent potentially malicious input from reaching the underlying C
5
 
# library.  Not a substitute for good web security programming practices.
 
5
# library.  Not a substitute for good Web security programming practices.
6
6
hex_regex = re.compile(r'^[0-9A-F]+$', re.I)
7
7
wkt_regex = re.compile(r'^(SRID=(?P<srid>\d+);)?'
8
8
                       r'(?P<wkt>'