Fixed Bug: pages names with single quotes

bug report

And please describe the problem below:

When creating a page containing a ”’” (useful in French for example) it creates the page ok and it is listed in the Site index. However if you try to access it, it will try to access the name up to the ”’”. Example: create a page named “essai a l’eau”, it will be listed ok in Site index. However clik on it, and it will try to acess “essai a l”

And if you have any suggestions for the cause or a fix, please put it below:

Changing soks-view.rb class WikiRedCloth so that method link now reads:
  def link( url, title = url, css_class = '' )
    shelve "<a href=\"#{url}\" class='#{css_class}'>#{title}</a>" 
  end
solves it in the site index but the autolink in other pages still does not work.

Seb.

Thanks for the bug report Seb.

The cause of the problem is that the html code for the pages uses single quotes around parameters, e.g:

<a href='http://www.soks.org/view/a page'>

Unfortunately, if there is a single quote in the page name, then it looks like this:

<a href='http://www.soks.org/view/essai a l'eau'>

and therefore the browser only recognises up to the l.

The solution is to replace all occurances of ’ in pagenames in urls with ' which is the html encoding. I’m working on doing this and will make sure it works in the next version.

As an aside, I’m redoing the way that page titles are linked, this will hopefully make much more punctuation work in page titles.

tamc2

Regarding the autolink not working. The cause seems to be that RedCloth converts the ’ into a & # 8217 ; before it is passed to the autolinker, therefore the title doesn’t match. I will work on a fix—tamc2

Hopefully fixed in v1-0-0

Edit this page or watch for changes using RSS.