Skip to content

Commit

Permalink
Fix #13696: Show absolute_path_default_upload_folder on edit project …
Browse files Browse the repository at this point in the history
…page

Fix of #8250 did the same for the create project page
  • Loading branch information
atrol committed Feb 20, 2012
1 parent f5106be commit 26db7ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion manage_proj_edit_page.php
Expand Up @@ -133,7 +133,14 @@
if ( file_is_uploading_enabled() ) { ?>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="project-file-path"><span><?php echo lang_get( 'upload_file_path' ) ?></span></label>
<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>
<?php
$t_file_path = $row['file_path'];
# Don't reveal the absolute path to non-administrators for security reasons
if ( is_blank( $t_file_path ) && current_user_is_administrator() ) {
$t_file_path = config_get( 'absolute_path_default_upload_folder' );
}
?>
<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>
<span class="label-style"></span>
</div><?php
} ?>
Expand Down

0 comments on commit 26db7ae

Please sign in to comment.