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];