Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 125af4e

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 5e9ead3 commit 125af4e

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
@@ -121,8 +121,15 @@
121121
<td class="category">
122122
<?php echo lang_get( 'upload_file_path' ) ?>
123123
</td>
124+
<?php
125+
$t_file_path = $row['file_path'];
126+
# Don't reveal the absolute path to non-administrators for security reasons
127+
if ( is_blank( $t_file_path ) && current_user_is_administrator() ) {
128+
$t_file_path = config_get( 'absolute_path_default_upload_folder' );
129+
}
130+
?>
124131
<td>
125-
<input type="text" name="file_path" size="50" maxlength="250" value="<?php echo string_attribute( $row['file_path'] ) ?>" />
132+
<input type="text" name="file_path" size="50" maxlength="250" value="<?php echo string_attribute( $t_file_path ) ?>" />
126133
</td>
127134
</tr>
128135
<?php } ?>

0 commit comments

Comments
 (0)
Please sign in to comment.