View Issue Details

IDProjectCategoryView StatusLast Update
0008504mantisbtbugtrackerpublic2014-09-23 18:05
Reporterhansen Assigned Todregad  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.0a4 
Target Version1.2.9Fixed in Version1.2.9 
Summary0008504: Edit project settings form has default 'space' in foldername field
Description

on page:
mantis/manage_proj_edit_page.php?project_id=10
there is a single space in the text field 'file_path'
this causes function file_add() in file_api.php recognizes string as not empty and do not load $g_absolute_path_default_upload_folder from config_inc.php

Steps To Reproduce

edit configuration ofthe project without specific upload folder

TagsNo tags attached.

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 

Activities

vboctor

vboctor

2007-10-24 02:49

manager   ~0015965

The checks for empty strings in file_add() should use is_blank() which trims the spaces.

The default value should be an empty string rather than a space.

dregad

dregad

2011-10-18 03:25

developer   ~0029979

Updated file api as per vboctor's comment.
Default value is already set to empty string in 1.2

grangeway

grangeway

2013-04-05 17:57

reporter   ~0036330

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 46960e03

2011-10-17 20:14

dregad


Details Diff
Fix 0008504: Use is_blank() not '' to check empty path in file_add() Affected Issues
0008504
mod - core/file_api.php Diff File

MantisBT: master-1.2.x ac8630bb

2011-10-17 20:14

dregad


Details Diff
Fix 0008504: Use is_blank() not '' to check empty path in file_add() Affected Issues
0008504
mod - core/file_api.php Diff File