Skip to content

Commit 1a8200e

Browse files
committed
Removed conflict statements
1 parent 715173b commit 1a8200e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

html/user/sandbox.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ function upload_file($user) {
162162
list_files($user, $notice);
163163
}
164164

165-
<<<<<<< HEAD
166-
=======
167165
function add_file($user) {
168166
$dir = sandbox_dir($user);
169167
$name = post_str('name');
@@ -203,7 +201,6 @@ function get_file($user) {
203201

204202
// delete a sandbox file.
205203
//
206-
>>>>>>> c2defb6df6 (web: fix various vulnerabilities)
207204
function delete_file($user) {
208205
$name = get_str('name');
209206
if (!is_valid_filename($name)) {
@@ -252,17 +249,10 @@ function view_file($user) {
252249
error_page('bad filename');
253250
}
254251
$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-
=======
261252
$path = "$dir/$name";
262253
if (!is_file($path)) {
263254
error_page("no such file");
264255
}
265-
>>>>>>> c2defb6df6 (web: fix various vulnerabilities)
266256
echo "<pre>\n";
267257
readfile($p);
268258
echo "</pre>\n";
@@ -280,12 +270,9 @@ function view_file($user) {
280270
case 'delete_file': delete_file($user); break;
281271
case 'download_file': download_file($user); break;
282272
case 'view_file': view_file($user); break;
283-
<<<<<<< HEAD
284273
default: error_page("no such action: $action");
285-
=======
286274
case 'add_form': add_form($user); break;
287275
default: error_page("no such action: ".htmlspecialchars($action));
288-
>>>>>>> c2defb6df6 (web: fix various vulnerabilities)
289276
}
290277

291278
?>

0 commit comments

Comments
 (0)