From 1467ecfd1c70c9d76410ef740f787ed19bad069c Mon Sep 17 00:00:00 2001 From: stnp Date: Mon, 22 Sep 2025 10:17:00 +0200 Subject: [PATCH] Fix java single quote issue --- classes/jobesandbox.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/classes/jobesandbox.php b/classes/jobesandbox.php index 103b74de..71fb7c9e 100644 --- a/classes/jobesandbox.php +++ b/classes/jobesandbox.php @@ -365,6 +365,13 @@ private function get_main_class($prog) { } else { $skipto = false; } + } else if ($prog[$i] == "'") { + // Matches the whole string - single quotes. + if (preg_match("/'((\\.)|[^\\'])*'/", $prog, $matches, 0, $i)) { + $skipto = $i + strlen($matches[0]); + } else { + $skipto = false; + } // Copy everything else. } else { $filteredprog[] = $prog[$i];