@@ -162,8 +162,6 @@ function upload_file($user) {
162
162
list_files ($ user , $ notice );
163
163
}
164
164
165
- <<<<<<< HEAD
166
- =======
167
165
function add_file ($ user ) {
168
166
$ dir = sandbox_dir ($ user );
169
167
$ name = post_str ('name ' );
@@ -203,7 +201,6 @@ function get_file($user) {
203
201
204
202
// delete a sandbox file.
205
203
//
206
- >>>>>>> c2defb6df6 (web: fix various vulnerabilities)
207
204
function delete_file ($ user ) {
208
205
$ name = get_str ('name ' );
209
206
if (!is_valid_filename ($ name )) {
@@ -252,17 +249,10 @@ function view_file($user) {
252
249
error_page ('bad filename ' );
253
250
}
254
251
$ dir = sandbox_dir ($ user );
255
- <<<<<<< HEAD
256
- list ($ error , $ size , $ md5 ) = sandbox_parse_link_file ("$ dir/ $ name " );
257
- if ($ error ) error_page ("no such link file " );
258
- $ p = sandbox_physical_path ($ user , $ md5 );
259
- if (!is_file ($ p )) error_page ("no such physical file " );
260
- =======
261
252
$ path = "$ dir/ $ name " ;
262
253
if (!is_file ($ path )) {
263
254
error_page ("no such file " );
264
255
}
265
- >>>>>>> c2defb6df6 (web: fix various vulnerabilities)
266
256
echo "<pre> \n" ;
267
257
readfile ($ p );
268
258
echo "</pre> \n" ;
@@ -280,12 +270,9 @@ function view_file($user) {
280
270
case 'delete_file ' : delete_file ($ user ); break ;
281
271
case 'download_file ' : download_file ($ user ); break ;
282
272
case 'view_file ' : view_file ($ user ); break ;
283
- <<<<<<< HEAD
284
273
default : error_page ("no such action: $ action " );
285
- =======
286
274
case 'add_form ' : add_form ($ user ); break ;
287
275
default : error_page ("no such action: " .htmlspecialchars ($ action ));
288
- >>>>>>> c2defb6df6 (web: fix various vulnerabilities)
289
276
}
290
277
291
278
?>
0 commit comments