diff options
author | Stefan Ritter <xeno@goliath.thehappy.de> | 2009-07-10 08:58:30 +0200 |
---|---|---|
committer | Stefan Ritter <xeno@goliath.thehappy.de> | 2009-07-10 08:58:30 +0200 |
commit | 7f2404fba2c1ca3a47b38024314e02a3dbe6dad5 (patch) | |
tree | 311c8ca74de27b59c76045cb867b66ef64c1f529 /blogthon.cgi | |
parent | ae50a9d0e9ce1a83cec3c57b75ed63d2fc951a37 (diff) |
Permalink bugfix
Diffstat (limited to '')
-rwxr-xr-x | blogthon.cgi | 4 |
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 '' |