Skip to content

Commit 26db7ae

Browse files
committedFeb 20, 2012
Fix #13696: Show absolute_path_default_upload_folder on edit project page
Fix of #8250 did the same for the create project page
1 parent f5106be commit 26db7ae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎manage_proj_edit_page.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,14 @@
133133
if ( file_is_uploading_enabled() ) { ?>
134134
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
135135
<label for="project-file-path"><span><?php echo lang_get( 'upload_file_path' ) ?></span></label>
136-
<span class="input"><input type="text" id="project-file-path" name="file_path" size="50" maxlength="250" value="<?php echo string_attribute( $row['file_path'] ) ?>" /></span>
136+
<?php
137+
$t_file_path = $row['file_path'];
138+
# Don't reveal the absolute path to non-administrators for security reasons
139+
if ( is_blank( $t_file_path ) && current_user_is_administrator() ) {
140+
$t_file_path = config_get( 'absolute_path_default_upload_folder' );
141+
}
142+
?>
143+
<span class="input"><input type="text" id="project-file-path" name="file_path" size="50" maxlength="250" value="<?php echo string_attribute( $t_file_path ) ?>" /></span>
137144
<span class="label-style"></span>
138145
</div><?php
139146
} ?>

0 commit comments

Comments
 (0)
Please sign in to comment.