Project

General

Profile

Actions

Defect #8416

closed

Problem when using single quotes in the description field

Added by Bruno Bigras over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
2011-05-20
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

I'm having weird results while using single quotes in the description field.

It may not be a bug at all if the single quote is used for something. I didn't see anything in Wiki formatting.

Maybe one or more quotes is not escaped properly.

mysql 5.1.54
ruby 1.8.7.302
rails 2.3.5
redmine 1.0.5 (from Ubuntu packages)
redmine 1.1.3 (from a ppa (I think it's from Debian unstable + patches))

Test case
Create a new issue, type the following into the description field and generate the preview.

'A'
'B'

Preview should be :

'A'
'B'

Preview is :

A

log

Processing PreviewsController#issue (for 10.66.34.10 at 2011-05-20 10:12:57) [POST]
  Parameters: {"commit"=>"Create", "project_id"=>"test", "action"=>"issue", "authenticity_token"=>"PhR0m/gicgbBJeeQAjm6BRQCAFLcRm61qRSd9wNH9Mk=", "issue"=>{"start_date"=>"2011-05-20",
  "estimated_hours"=>"", "priority_id"=>"4", "parent_issue_id"=>"", "done_ratio"=>"0", "assigned_to_id"=>"", "subject"=>"", "tracker_id"=>"1", "due_date"=>"", "status_id"=>"1", "description"=>"A"},
  "controller"=>"previews", "attachments"=>{"1"=>{"description"=>""}}}
Rendering previews/issue
Completed in 32ms (View: 6, DB: 2) | 200 OK [http://10.66.33.1/redmine/issues/preview?project_id=test]

Note that this bug doesn't happen on this instance of redmine.

Actions

Also available in: Atom PDF