]> git.joonet.de Git - adminer.git/commitdiff
Revert "PgSQL search operator "SQL" added"
authorJakub Vrana <jakub@vrana.cz>
Wed, 27 Jun 2018 07:20:06 +0000 (09:20 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 27 Jun 2018 20:23:56 +0000 (22:23 +0200)
This reverts commit af7ac6f06af0d7912df9f640852adf95487aef20.

adminer/drivers/pgsql.inc.php
changes.txt

index 88854cc4ecd96bb70f8d550f598271fce2248a8b..fe1f069f2bc0d670a88d691b19ba8202eb961959 100644 (file)
@@ -845,7 +845,7 @@ AND typelem = 0"
                $structured_types[$key] = array_keys($val);
        }
        $unsigned = array();
-       $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "ILIKE", "ILIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL"); // no "SQL" to avoid SQL injection
+       $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "ILIKE", "ILIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL"); // no "SQL" to avoid CSRF
        $functions = array("char_length", "lower", "round", "to_hex", "to_timestamp", "upper");
        $grouping = array("avg", "count", "count distinct", "max", "min", "sum");
        $edit_functions = array(
index e4a495470693b12f556edce83ec73d8a1ff2bfd4..278ae955b2d09a7c0aaf0d8ae591e58ea3afebae 100644 (file)
@@ -10,7 +10,6 @@ PDO: Support binary fields download
 MySQL: Disallow LOAD DATA LOCAL INFILE
 MySQL: Use CONVERT() only when searching for non-ASCII (bug #603)
 MySQL: Order database names in MySQL 8 (bug #613)
-PostgreSQL: Add SQL operator to search
 PostgreSQL: Fix editing data in views (bug #605, regression from 4.6.0)
 PostgreSQL: Do not cast date/time/number/uuid searches to text (bug #608)
 PostgreSQL: Export false as 0 in PDO (bug #619)