View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0014541 | mantisbt | code cleanup | public | 2012-08-01 17:35 | 2014-02-07 18:24 |
| Reporter | hazeuh@gmail.com | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.2.12 | ||||
| Target Version | 1.2.16 | Fixed in Version | 1.2.16 | ||
| Summary | 0014541: Remove calls to deprecated functions db_prepare* in "Docs" update page | ||||
| Description | Those calls cause the strings to be escaped twice: by db_prepare* and then by db_query_bound. This leads to slashes appearing in the database (see attached screenshot_20120808_001.png) dregad: created based on pull request https://github.com/mantisbt/mantisbt/pull/53 | ||||
| Steps To Reproduce |
The incorrect, double escaping appears | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
Hello, Thank you for your response and your time. Here are the informations you requested. Prerequisites: Steps to reproduce : Expected Results : Analysis : |
|
|
Tried your steps with latest dev build, but was unable to reproduce the issue you describe (see attached screenshot). |
|
|
Hello, My bad, these steps are incorrects, this bug appears only in edition mode. Here are the correct steps, assuming you still have the document shown in your screenshot :
The incorrect escaping should appear now. Thank you. |
|
|
I noticed that the use of db_query_bound in combination with db_prepare_binary_string() causes a corruption of the attachment when a new file is uploaded (see 0012955) |
|
|
MantisBT: master-1.2.x 586057ff 2012-07-12 05:36 Committer: Damien Regad Details Diff |
Remove calls to deprecated functions db_prepare* in "Docs" update page Those calls cause the strings to be escaped twice : by db_prepare* and then by db_query_bound, which leads to backslashes apparing in the database. All c_ prefixed variables have been removed as well, as there is no need anymore for SQL cleaned variables. Fixes 0014541 Signed-off-by: Damien Regad <damien.regad@merckgroup.com> |
Affected Issues 0014541 |
|
| mod - proj_doc_update.php | Diff File | ||