]> git.joonet.de Git - adminer.git/commitdiff
Allow only apostrophes in enums
authorJakub Vrana <jakub@vrana.cz>
Fri, 22 Oct 2010 20:42:40 +0000 (22:42 +0200)
committerJakub Vrana <jakub@vrana.cz>
Fri, 22 Oct 2010 20:42:40 +0000 (22:42 +0200)
Use possessive quantifier in enum to fit in backtrack limit

adminer/index.php
readme.txt

index 40c849a7f13a29a4d582c01d0d0528d2d1378d71..d1568c0a0748d43f7015fd405219d42fce95dc26 100644 (file)
@@ -8,7 +8,7 @@
 
 include "./include/bootstrap.inc.php";
 
-$enum_length = '\'(?:\'\'|[^\'\\\\]|\\\\.)*\'|"(?:""|[^"\\\\]|\\\\.)*"';
+$enum_length = "'(?:''|[^'\\\\]|\\\\.)*+'";
 $inout = array("IN", "OUT", "INOUT");
 
 if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
index 02f0c70a873b7f4cc6baacb333b3c7ad731409b4..07ef7e31d5b0ff9261f3ce4cd9853449aae96d6a 100644 (file)
@@ -3,7 +3,7 @@ Adminer Editor - Data manipulation for end-users
 
 http://www.adminer.org/
 Supports: MySQL, PostgreSQL, SQLite, MS SQL, Oracle
-Requirements: PHP 4.3.2+ or PHP 5+
+Requirements: PHP 4.3.3+ or PHP 5+
 Apache License, Version 2.0
 
 adminer/index.php - Run development version of Adminer