Project

General

Profile

Actions

Defect #2324

closed

Wiki preview fails when title contains '

Added by François M over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
2008-12-12
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

When you set a wiki entry title that contains an apostrophe (') char. Then preview fails due to a javascript error : the apostrophe char is not escaped in the request.

Actions #1

Updated by Jean-Philippe Lang over 16 years ago

  • Status changed from New to Resolved

I'm not able to reproduce with latest trunk.
The title seems to be properly escaped by a backslash in the javascript of the preview link on wiki/edit view:

<a accesskey="r" href="#" onclick="new Ajax.Updater('preview', '/wiki/redmine/L\'apostrophe/preview',
{asynchronous:true, evalScripts:true, method:'post', onComplete:function(request){Element.scrollTo('preview')},
parameters:Form.serialize('wiki_form')}); return false;">Preview</a>
Actions #2

Updated by Jean-Philippe Lang over 16 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF