Commit c168d23e authored by Thomas Löffler's avatar Thomas Löffler

Increase extension key length to 100

parent 0029ccdc
Pipeline #3966 passed with stages
in 5 minutes and 19 seconds
......@@ -1305,7 +1305,8 @@ class tx_ter_api
// Length
$extensionKeyLength = strlen($extensionKey);
if ($extensionKeyLength < 3 || $extensionKeyLength > 30) {
$extensionKeyLengthWithoutUnderscores = strlen(str_replace('_', '', $extensionKey));
if ($extensionKeyLengthWithoutUnderscores < 3 || $extensionKeyLength > 100) {
$validKey = false;
}
......
......@@ -2,14 +2,14 @@
#
# Table structure for table 'tx_ter_extensionkeys'
#
CREATE TABLE tx_ter_extensionkeys (
CREATE TABLE tx_ter_extensionkeys (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
title varchar(50) DEFAULT '' NOT NULL,
description text NOT NULL,
extensionkey varchar(30) DEFAULT '' NOT NULL,
extensionkey varchar(100) DEFAULT '' NOT NULL,
ownerusername varchar(30) DEFAULT '' NOT NULL,
maxstoresize int(11) DEFAULT '0' NOT NULL,
downloadcounter int(11) DEFAULT '0' NOT NULL,
......@@ -22,10 +22,10 @@ CREATE TABLE tx_ter_extensionkeys (
#
# Table structure for table 'tx_ter_extensionmembers'
#
CREATE TABLE tx_ter_extensionmembers (
CREATE TABLE tx_ter_extensionmembers (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
extensionkey varchar(30) DEFAULT '' NOT NULL,
extensionkey varchar(100) DEFAULT '' NOT NULL,
username varchar(30) DEFAULT '' NOT NULL,
PRIMARY KEY (uid),
......@@ -42,7 +42,7 @@ CREATE TABLE tx_ter_extensions (
pid int(11) DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
extensionkey varchar(30) DEFAULT '' NOT NULL,
extensionkey varchar(100) DEFAULT '' NOT NULL,
version varchar(11) DEFAULT '' NOT NULL,
title varchar(50) DEFAULT '' NOT NULL,
description text NOT NULL,
......@@ -52,7 +52,7 @@ CREATE TABLE tx_ter_extensions (
downloadcounter int(11) DEFAULT '0' NOT NULL,
ismanualincluded int(11) DEFAULT '0' NOT NULL,
t3xfilemd5 varchar(32) DEFAULT '' NOT NULL,
PRIMARY KEY (uid),
KEY extkey (extensionkey,pid),
KEY extcat (category,pid),
......@@ -91,10 +91,10 @@ CREATE TABLE tx_ter_extensiondetails (
codingguidelinescompliance varchar(10) DEFAULT '' NOT NULL,
codingguidelinescompliancenote tinytext NOT NULL,
loadorder tinytext NOT NULL,
PRIMARY KEY (uid),
KEY extuid (extensionuid)
);
);
#
# Table structure for table 'tx_ter_extensionqueue'
......@@ -102,7 +102,7 @@ CREATE TABLE tx_ter_extensiondetails (
CREATE TABLE tx_ter_extensionqueue (
uid int(11) unsigned DEFAULT '0' NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
extensionkey varchar(30) DEFAULT '' NOT NULL,
extensionkey varchar(100) DEFAULT '' NOT NULL,
extensionuid int(11) DEFAULT '0' NOT NULL,
deleted tinyint(4) DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
......
......@@ -189,7 +189,7 @@
<li>Allowed characters are: a-z (lowercase), 0-9 and '_' (underscore)</li>
<li>The key must not being with one of the following prefixes: tx,user_,pages,tt_,sys_,ts_language_,csh_</li>
<li>Extension keys must not start with a number and must not start or end with an '_' (underscore)</li>
<li>An extension key must have minimum 3, maximum 30 characters (not counting underscores)</li>
<li>An extension key must have minimum 3 (not counting underscores), maximum 100 characters (incl. underscores)</li>
</ul>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment