Skip to content

Commit 2785f56

Browse files
committed
Doc
1 parent 412b65c commit 2785f56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/remote_server/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ function checkScriptFile($scriptfile, $fh, $params)
406406
}
407407

408408
$txt_file = file_get_contents($scriptfile); //Get the file
409-
$rows = preg_split('/\r\n|\r|\n/', $txt_file); //Split the file by each line
409+
$rows = preg_split('/\r\n|\r|\n/', $txt_file); //Split the file by each line TODO Split also on ";" so list of allowed is easier to manage
410410

411411
$linenotvalid = 0;
412412
$i = 0;
@@ -469,7 +469,7 @@ function checkScriptFile($scriptfile, $fh, $params)
469469
if (preg_match('/^#?php \/home\/jail\/home\/osu[a-z0-9]+\/dbn[a-z0-9]+\/htdocs\/install\/upgrade2\.php 0\.0\.0 0\.0\.0 [a-z_,]+$/i', $newline)) {
470470
continue;
471471
}
472-
if (preg_match('/^#?cd \/home\/jail\/home\/osu[a-z0-9]+\/dbn[a-z0-9]+\/htdocs\/install$/i', $newline)) {
472+
if (preg_match('/^#?cd \/home\/jail\/home\/osu[a-z0-9]+\/dbn[a-z0-9]+\/htdocs\/install\/?$/i', $newline)) {
473473
continue;
474474
}
475475
// TODO enhance list of allowed patterns

0 commit comments

Comments
 (0)