Ticket #6955: rng-validator-unicode.diff

File rng-validator-unicode.diff, 545 bytes (added by Jeremy Dunck, 17 years ago)

Needs a test; just pointing out the problem for now. :-/

  • django/core/validators.py

     
    554554            }
    555555        filename = tempfile.mktemp() # Insecure, but nothing else worked
    556556        fp = open(filename, 'w')
    557         fp.write(field_data)
     557        fp.write(smart_str(field_data))
    558558        fp.close()
    559559        if not os.path.exists(settings.JING_PATH):
    560560            raise Exception, "%s not found!" % settings.JING_PATH
Back to Top