diff options
author | Cédric Picard <cedric.picard@efrei.net> | 2014-11-29 01:30:42 +0100 |
---|---|---|
committer | Cédric Picard <cedric.picard@efrei.net> | 2014-11-29 01:30:42 +0100 |
commit | 84af1f3de58ae6d3d27e8db86990d130cc85005d (patch) | |
tree | 6190099f2c487cf9c024a2e9b9591fe7001da28d | |
parent | e4fd18afaf6228395e59b99032362ac65fc4fca3 (diff) | |
download | pasteme-84af1f3de58ae6d3d27e8db86990d130cc85005d.tar.gz pasteme-84af1f3de58ae6d3d27e8db86990d130cc85005d.tar.bz2 pasteme-84af1f3de58ae6d3d27e8db86990d130cc85005d.zip |
Fixed unicode errors once and for all (hopefully)
-rwxr-xr-x | pasteme.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -21,7 +21,8 @@ def route_root(): @bottle.route('/', method='POST') def route_paste_post(): - content = bottle.request.forms.get('content') + content = bottle.request.forms.getunicode('content', '') + try: pid = identigen.generate(content) except AttributeError as e: |