From b6816c0c6dd6b0785a68a1d0ca6588f841d89c77 Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Wed, 7 Apr 2021 12:13:26 +0200 Subject: [PATCH] match anything that is not a } instead of using the regexp flags --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index 8066720..382a214 100644 --- a/src/Server.php +++ b/src/Server.php @@ -248,7 +248,7 @@ private function handleSparqlUpdate(Response $response, string $path, $contents) // FIXME: Use enums from namespace Pdsinterop\Rdf\Enum\Format instead of 'turtle'? // parse query in contents - if (preg_match_all("/((INSERT|DELETE).*{(.*)})+/m", $contents, $matches, PREG_SET_ORDER)) { + if (preg_match_all("/((INSERT|DELETE).*{([^}]*)})+/", $contents, $matches, PREG_SET_ORDER)) { foreach ($matches as $match) { $command = $match[2]; $triples = $match[3];