summaryrefslogtreecommitdiffstats
path: root/pasteme.py
diff options
context:
space:
mode:
authorCédric Picard <cedric.picard@efrei.net>2014-11-29 01:30:42 +0100
committerCédric Picard <cedric.picard@efrei.net>2014-11-29 01:30:42 +0100
commit84af1f3de58ae6d3d27e8db86990d130cc85005d (patch)
tree6190099f2c487cf9c024a2e9b9591fe7001da28d /pasteme.py
parente4fd18afaf6228395e59b99032362ac65fc4fca3 (diff)
downloadpasteme-84af1f3de58ae6d3d27e8db86990d130cc85005d.tar.gz
pasteme-84af1f3de58ae6d3d27e8db86990d130cc85005d.tar.bz2
pasteme-84af1f3de58ae6d3d27e8db86990d130cc85005d.zip
Fixed unicode errors once and for all (hopefully)
Diffstat (limited to 'pasteme.py')
-rwxr-xr-xpasteme.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pasteme.py b/pasteme.py
index d0bd2fe..09b3351 100755
--- a/pasteme.py
+++ b/pasteme.py
@@ -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: