Defect #11511
closedConfirmation page has broken HTML when a project folding sub project is deleted
0%
Description
I created a new project in Redmine (In "Home" page, I clicked [Administration], next [Projects], third [New Project]. I filled the necessary fields in "New project" page and clicked [Create] button finally).
This new project is "PARENT-PROJECT".
I also created a new sub project of "PARENT-PROJECT", named "SUB-PROJECT".
When I created "SUB-PROJECT", I selected "PARENT-PROJECT" in "Subproject of" drop-down list.
So I will delete the "PARENT-PROJECT" (In "Home" page, I clicked [Administration], next [Projects], finally [Delete] on right side of "PARENT-PROJECT" column),
but "Confirmation" page has broken HTML.
<p><strong>PARENT-PROJECT</strong><br /> Are you sure you want to delete this project and related data? <br />Its subproject(s): <strong>SUB-PROJECT</strong> will be also deleted. </p>
Open <strong> tag and close </strong> tag are escaped around "SUB-PROJECT".
For example:
Before:
PARENT-PROJECT
Are you sure you want to delete this project and related data?
Its subproject(s): <strong>SUB-PROJECT</strong> will be also deleted.
After:
PARENT-PROJECT
Are you sure you want to delete this project and related data?
Its subproject(s): SUB-PROJECT will be also deleted.
The strong tags put stronger emphasis on "SUB-PROJECT" string. This case, "Confirmation" page has broken HTML.
I use ruby 1.9.3 and Rails 3.2.6.
Files