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 5e9ead3 commit 125af4e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion manage_proj_edit_page.php
Expand Up @@ -121,8 +121,15 @@
<td class="category">
<?php echo lang_get( 'upload_file_path' ) ?>
</td>
<?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' );
}
?>
<td>
<input type="text" name="file_path" size="50" maxlength="250" value="<?php echo string_attribute( $row['file_path'] ) ?>" />
<input type="text" name="file_path" size="50" maxlength="250" value="<?php echo string_attribute( $t_file_path ) ?>" />
</td>
</tr>
<?php } ?>
Expand Down

0 comments on commit 125af4e

Please sign in to comment.