We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e9ead3 commit 125af4eCopy full SHA for 125af4e
manage_proj_edit_page.php
@@ -121,8 +121,15 @@
121
<td class="category">
122
<?php echo lang_get( 'upload_file_path' ) ?>
123
</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
+?>
131
<td>
- <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 ) ?>" />
133
134
</tr>
135
<?php } ?>
0 commit comments