Modify

Opened 9 years ago

Closed 9 years ago

#3612 closed defect (fixed)

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

Reported by: Wang Diancheng Owned by: Odd Simon Simonsen
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.py

    old new  
    129129        else:
    130130            # Assume it is a regular post, and pass to 'view'
    131131            # Split for comment linking (the_post#comment-1, or #comment-1)
    132             segments = unicode_unquote(content).split('#')
     132            segments = content.split('#')
    133133            if len(segments) == 2:
    134134                url, anchor = segments
    135135            else:

why here use unicode_unquote function?

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Odd Simon Simonsen

Resolution: fixed
Status: newclosed

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

Thanks to Wang Diancheng for report and patch.

Closes #3612.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Odd Simon Simonsen.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.