Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
c168d23e
Commit
c168d23e
authored
Apr 07, 2018
by
Thomas Löffler
Browse files
Increase extension key length to 100
parent
0029ccdc
Pipeline
#3966
passed with stages
in 5 minutes and 19 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter/class.tx_ter_api.php
View file @
c168d23e
...
...
@@ -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
;
}
...
...
html/typo3conf/ext/ter/ext_tables.sql
View file @
c168d23e
...
...
@@ -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
(
3
0
)
DEFAULT
''
NOT
NULL
,
extensionkey
varchar
(
10
0
)
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
(
3
0
)
DEFAULT
''
NOT
NULL
,
extensionkey
varchar
(
10
0
)
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
(
3
0
)
DEFAULT
''
NOT
NULL
,
extensionkey
varchar
(
10
0
)
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
(
3
0
)
DEFAULT
''
NOT
NULL
,
extensionkey
varchar
(
10
0
)
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
,
...
...
html/typo3conf/ext/ter_fe2/Resources/Private/Templates/Registerkey/Index.html
View file @
c168d23e
...
...
@@ -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
3
0 characters (
not counting
underscores)
</li>
<li>
An extension key must have minimum 3
(not counting underscores)
, maximum
10
0 characters (
incl.
underscores)
</li>
</ul>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment