Skip to content

Commit

Permalink
Now escapes quotations in titles.
Browse files Browse the repository at this point in the history
  • Loading branch information
lethain committed Jun 4, 2008
1 parent 3dac89f commit 79ca5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/views.py
Expand Up @@ -32,7 +32,7 @@
def slugify(str):
# This could be substantially more robust,
# but for the moment it suffices.
return str.lower().replace(' ','-').replace('.','').replace(',','-').replace("'","")[:95]
return str.lower().replace(' ','-').replace('.','').replace(',','-').replace("'","").replace('"',"")[:95]

def login(request):
error_msg = u""
Expand Down

0 comments on commit 79ca5e9

Please sign in to comment.