From c918bc83f3476d114fd04e2752d2d772e29938fb Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 24 Oct 2010 08:25:40 +0200 Subject: [PATCH] Use shortest PostgreSQL $$ --- adminer/sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 5e1a0cd0..cdfa0878 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -41,7 +41,7 @@ if (!$error && $_POST) { } $commands = 0; $errors = array(); - $parse = '[\'`"]' . ($jush == "pgsql" ? '|\\$.*\\$' : ($jush == "mssql" || $jush == "sqlite" ? '|\\[' : '')) . '|/\\*|-- |#'; //! ` and # not everywhere + $parse = '[\'`"]' . ($jush == "pgsql" ? '|\\$[^$]*\\$' : ($jush == "mssql" || $jush == "sqlite" ? '|\\[' : '')) . '|/\\*|-- |#'; //! ` and # not everywhere while ($query != "") { if (!$offset && $jush == "sql" && preg_match('~^\\s*DELIMITER\\s+(.+)~i', $query, $match)) { $delimiter = $match[1];