View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012076 | mantisbt | attachments | public | 2010-06-16 10:04 | 2010-06-16 10:04 |
Reporter | dominik | Assigned To | |||
Priority | low | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 1.2.1 | ||||
Summary | 0012076: Problems with Handling of File names containing "-" (attachments) | ||||
Description | The function file_get_display_name() contains code to manipulate the filename (i guess in earlier versions a fix scheme like 0000000-filename was used) so if you have a file name lik 1234567-test.pdf the function will return test.pdf instead of 1234567-test.pdf I don't know since when this naming scheme is no longer in use but wouldn't it make sense to make sure (eg. in the upgrade script) that all filenames will use the "new" (no) scheme and not any longer the "old" one and to remove that code snippet? Or am I missing something? As a workaround I added a config switch for my installation to disable this behaviour. | ||||
Additional Information | /**
function file_get_display_name( $p_filename ) { Check if it's a project document filename (doc-0000000-filename)or a bug attachment filename (0000000-filename)for newer filenames, the filename in schema is correct.This is important to handle filenames with '-'s properly$t_doc_match = '/^' . config_get( 'document_files_prefix' ) . '-\d{7}-/'; | ||||
Tags | No tags attached. | ||||