View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009508 | mantisbt | filters | public | 2008-08-11 04:49 | 2009-01-15 11:26 |
Reporter | mdelmarter | Assigned To | daryn | ||
Priority | normal | Severity | text | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0a2 | ||||
Fixed in Version | 1.2.0a3 | ||||
Summary | 0009508: Adding Filters with Apostrophe saves Backslash in the database | ||||
Description | I am using Mantis with MySQL 5.0. When I add a new Filter with an apostrophe it saves a backslash in the database which then is displayed when viewing the filter dropdown. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
It is surely a good thing that the quote char got escaped in the DB; what is not right is that the backslash got escaped again so you can see it. |
|
This needs a bit more clarification I think. What do you mean by 'Adding filters'? Are you referring to a stored filter where the name of the filter has an apostrophe or something else? |
|
Adding == saving a new filter. Probably a picture is easier to understand, I just saved in my local instance a filter naming it "nice'n'clean" |
|
Thanks giallu, thats the exact behaviour I was trying to describe. Out of interest an earlier version of Mantis sitting on top of a postgres database does not save the slashes to the database. I am not sure if it is the newer version that has caused the problem, or it is the difference in the database that is causing the issue. (I am now using MySQL). Maybe that gives some clues, maybe not... |
|
Fixed double string escape in filter api. This only fixes new saved filters. http://mantisbt.svn.sourceforge.net/viewvc/mantisbt?view=rev&revision=5506 |
|
MantisBT: master 38c27ffb 2008-08-12 09:54 Details Diff |
Fix for bug 0009508. Double string escape for stored query name git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5506 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0009508 |
|
mod - core/filter_api.php | Diff File |