Modify ↓
      
        Opened 17 years ago
Closed 17 years ago
#3612 closed defect (fixed)
when shortname includes non-acsii characters and use fullblog link, crash ocurrs
| Reported by: | Wang Diancheng | Owned by: | 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. 中文, then click "preview" button crash.
I creat patch:
- 
        core.pyold new 129 129 else: 130 130 # Assume it is a regular post, and pass to 'view' 131 131 # Split for comment linking (the_post#comment-1, or #comment-1) 132 segments = unicode_unquote(content).split('#')132 segments = content.split('#') 133 133 if len(segments) == 2: 134 134 url, anchor = segments 135 135 else: 
why here use unicode_unquote function?
Attachments (0)
Note: See
        TracTickets for help on using
        tickets.
    



(In [4222]) FullBlogPlugin: Fix for segment-split of non-ascii blog links.
Thanks to Wang Diancheng for report and patch.
Closes #3612.