Skip to content

Commit

Permalink
Now properly escapes apostrophes in titles.
Browse files Browse the repository at this point in the history
  • Loading branch information
lethain committed Jun 4, 2008
1 parent 22d9063 commit 3dac89f
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(',','-')[:95]
return str.lower().replace(' ','-').replace('.','').replace(',','-').replace("'","")[:95]

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

0 comments on commit 3dac89f

Please sign in to comment.