aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xblogthon.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index e06de01..d02bf65 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -457,7 +457,7 @@ else:
comments_file = glob.glob(entries_dir + title + '.comments')
if not comments_file and not post_display:
print ' <div class="entry_comment">'
- print ' <a href="?p=' + title + '" class="entry_comment">no comments</a>'
+ print ' <a href="?p=' + re.sub(' ','-', title) + '" class="entry_comment">no comments</a>'
print ' </div>'
print ' </div>'
print ''
@@ -467,7 +467,7 @@ else:
for line in comments_content:
if line.split(".", 1)[0] == "-": comments_counter += 1
print ' <div class="entry_comment">'
- print ' <a href="?p=' + title + '" class="entry_comment">comments (' + str(comments_counter) + ')</a>'
+ print ' <a href="?p=' + re.sub(' ', '-', title) + '" class="entry_comment">comments (' + str(comments_counter) + ')</a>'
print ' </div>'
print ' </div>'
print ''