Ticket #3612 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

when shortname includes non-acsii characters and use fullblog link, crash ocurrs

Reported by: Wang Diancheng Assigned to: osimons
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

when a wiki or blog post includes non-ascii fullblog link name eg. [blog:中文], then click "preview" button crash.

I creat patch:

--- core.py~    2008-08-26 22:08:20.000000000 +0800
+++ core.py     2008-08-26 22:05:29.000000000 +0800
@@ -129,7 +129,7 @@
         else:
             # Assume it is a regular post, and pass to 'view'
             # Split for comment linking (the_post#comment-1, or #comment-1)
-            segments = unicode_unquote(content).split('#')
+            segments = content.split('#')
             if len(segments) == 2:
                 url, anchor = segments
             else:

why here use unicode_unquote function?

Attachments

Change History

09/02/08 04:23:02 changed by osimons

  • status changed from new to closed.
  • resolution set to fixed.

(In [4222]) FullBlogPlugin: Fix for segment-split of non-ascii blog links.

Thanks to Wang Diancheng for report and patch.

Closes #3612.


Add/Change #3612 (when shortname includes non-acsii characters and use fullblog link, crash ocurrs)




Change Properties
Action