Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
1ab168bd
Commit
1ab168bd
authored
Sep 11, 2019
by
Carsten Rose
Browse files
Fixes #9089: Move Stored Procedure to SECURITY=INVOKER
parent
78e2faa5
Pipeline
#2350
passed with stages
in 2 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Sql/function.sql
View file @
1ab168bd
...
...
@@ -6,6 +6,7 @@ DROP FUNCTION IF EXISTS GETFUNCTIONSHASH;
CREATE
FUNCTION
GETFUNCTIONSHASH
()
RETURNS
TEXT
DETERMINISTIC
SQL
SECURITY
INVOKER
BEGIN
RETURN
'%%FUNCTIONSHASH%%'
;
END
;
...
...
@@ -20,6 +21,7 @@ DROP FUNCTION IF EXISTS QMORE;
CREATE
FUNCTION
QMORE
(
input
TEXT
,
maxlen
INT
)
RETURNS
TEXT
DETERMINISTIC
SQL
SECURITY
INVOKER
BEGIN
DECLARE
output
TEXT
;
IF
maxlen
<
1
THEN
...
...
@@ -43,6 +45,7 @@ DROP FUNCTION IF EXISTS QBAR;
CREATE
FUNCTION
QBAR
(
input
TEXT
)
RETURNS
TEXT
DETERMINISTIC
SQL
SECURITY
INVOKER
BEGIN
DECLARE
output
TEXT
;
SET
output
=
REPLACE
(
input
,
'|'
,
'
\\
|'
);
...
...
@@ -58,6 +61,7 @@ DROP FUNCTION IF EXISTS QNL2BR;
CREATE
FUNCTION
QNL2BR
(
input
TEXT
)
RETURNS
TEXT
DETERMINISTIC
SQL
SECURITY
INVOKER
BEGIN
DECLARE
output
TEXT
;
SET
output
=
REPLACE
(
REPLACE
(
input
,
CHAR
(
13
),
''
),
CHAR
(
10
),
'<br>'
);
...
...
@@ -73,6 +77,7 @@ DROP FUNCTION IF EXISTS QIFEMPTY;
CREATE
FUNCTION
QIFEMPTY
(
input
TEXT
,
token
TEXT
)
RETURNS
TEXT
DETERMINISTIC
SQL
SECURITY
INVOKER
BEGIN
DECLARE
output
TEXT
;
SET
output
=
IF
(
input
=
''
,
token
,
input
);
...
...
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