View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0013247 | mantisbt | attachments | public | 2011-08-18 09:44 | 2012-08-17 14:11 |
| Reporter | DAK007340 | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Product Version | 1.2.5 | ||||
| Summary | 0013247: Bug in file "proj_doc_update.php" | ||||
| Description | After you edit an existing project documentation, the escape sequences incorrectly displayed | ||||
| Steps To Reproduce |
| ||||
| Additional Information | Solution: Line 54 | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
I have been experiencing the same problem with the description and with the actual file that was updated. The updated file was corrupted and looked like this: 'UPDATE campaign_codes SET DESCRIPTION=\'GOOGLE BANNER\' WHERE CAMPAIGN_CODE=\'A1310Q10\';\r\nUPDATE campaign_codes SET DESCRIPTION=\'FACEBOOK BANNER\' WHERE CAMPAIGN_CODE=\'A1310Q11\';\r\n' instead of: UPDATE campaign_codes SET DESCRIPTION='GOOGLE BANNER' WHERE CAMPAIGN_CODE='A1310Q10'; UPDATE campaign_codes SET DESCRIPTION='FACEBOOK BANNER' WHERE CAMPAIGN_CODE='A1310Q11'; This causes major problems with images, OO documents and spreadsheets. I am using Mantis version 1.2.8, PHP version 5.3.8 and MySQL version 5.5.17. I have made the following change on line 105: //$c_content = db_prepare_binary_string( fread ( fopen( $v_tmp_name, 'rb' ), $v_size ) ); This is perhaps not the safest, but it is an internal Mantis instance and it seems to work. Is there a better way? |
|