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
43ce06a4
Commit
43ce06a4
authored
Nov 14, 2020
by
Carsten Rose
Browse files
Fix typo
parent
7423ad1b
Pipeline
#4228
passed with stages
in 5 minutes and 6 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Documentation/Release.rst
View file @
43ce06a4
...
...
@@ -1687,7 +1687,7 @@ Features
Bug Fixes
^^^^^^^^^
* #5706 / Fixed that problematic characters in 'fileDestination' has not been san
a
tized.
* #5706 / Fixed that problematic characters in 'fileDestination' has not been san
i
tized.
* Fixed problem with buttons clipping trough alert.
* Client: wrong variable, updated CSS for long errors.
...
...
@@ -1835,7 +1835,7 @@ Notes
Features
^^^^^^^^
* #5022 / Variable violates san
a
tize class: 'msg' instead of empty string - new identifier "!!<sanitize class>!!".
* #5022 / Variable violates santize class: 'msg' instead of empty string - new identifier "!!<sanitize class>!!".
* #4813 / Exception during form load: show 'form edit link' if editor is logged in.
* formEditor.sql: Increas size of Form.title to give more room for SQL statements in.
* Manual.rst: enhance debug tipps.
...
...
@@ -2408,7 +2408,7 @@ Bug Fixes
^^^^^^^^^
* #3953 / Radio buttons: Auswahl nicht angezeigt, wenn per itemList definiert.
* #3982 / Filename San
a
tize: remove spaces. Filename not properbly enclosed by double ticks.
* #3982 / Filename Santize: remove spaces. Filename not properbly enclosed by double ticks.
Version 0.18.6
--------------
...
...
@@ -2602,7 +2602,7 @@ Features
* #3218, #3600 / download.php / export: QFQ is now able to create PDFs and ZIPs on the fly. The sources might be
uploaded PDFs or Websites (local or remote) which will be converted to PDFs.
* Implement 'encode=specialchar' - new option per FormElement which is now the default for every FormElement.
* San
a
tize.php: New function urlDecodeArr(). Decode all _GET vars.
* Santize.php: New function urlDecodeArr(). Decode all _GET vars.
* Implemented max GET parameter lenght. Default: 50.
* Implemented new escape class 'mysql' (realEscapeString).
* LICENSE.txt: Add GPLv3.
...
...
@@ -2689,8 +2689,8 @@ Bug Fixes
new `explodeTemplateGroupElements()`
* TypeAhead.js: Handle <ENTER> key properly.
* #3462 / FormElement.parameter: requiredList not ok for non numeric content. STORE_FORM had been called without 'san
a
tize class'.
Therefore, all non numeric values has been san
a
tized by default. New: SAN
A
TIZE_ALLOW_ALL.
* #3462 / FormElement.parameter: requiredList not ok for non numeric content. STORE_FORM had been called without 'santize class'.
Therefore, all non numeric values has been san
i
tized by default. New: SAN
I
TIZE_ALLOW_ALL.
* Corrected error message to use 'itemList' instead of 'itemValues'. Renamed constant too.
* #2542 / FormElement-Typ 'note' funktioniert nicht mit dynamic update. 'Label' and 'note' are fixed - 'value' is still not updated, open.
...
...
@@ -2901,7 +2901,7 @@ Features
* Multiple / Advanced Upload: new logic implements slaveId, sqlInsert, sqlUpdate, sqlDelete.
* FormElement.parameter: sqlBefore / sqlAfter fired during 'Form' save for action elements.
* STORE FORM: variable 'filename' moved to STORE VAR - san
a
tize class needs no longer specified.
* STORE FORM: variable 'filename' moved to STORE VAR - san
i
tize class needs no longer specified.
* STORE VAR: two new variables 'filename' and 'fileDestination' valid during processing of current upload FormElement.
* Default store priority list changed. Old: 'FSRD', New: 'FSRVD'.
* CODING.md: update doc for FormElement 'upload' and general 'Form' rendering & save (recursive rendering).
...
...
@@ -2961,7 +2961,7 @@ Features
* Added STORE_BEFORE, #3146 - Mainly used to compare old and new values during a form 'save' action.
* Added 'best practice' for defining and using of 'Central configure values' in UserManual.
* Added accent characters to san
a
tize class 'alnumx', #3183.
* Added accent characters to san
i
tize class 'alnumx', #3183.
* Set default all QFQ send mails to 'auto-submit'.
* Added possibility to customize error messages ('data-pattern-error', 'data-rquired-error', 'data-match-error',
'data-error') if validation fails. Customization can be done on global level (config.qfq.ini), per Form or per FormElement.
...
...
extension/Classes/Core/Constants.php
View file @
43ce06a4
...
...
@@ -780,7 +780,7 @@ const TOKEN_FOUND_STOP_REPLACE = 'stopReplace';
const
VAR_INDEX_VALUE
=
0
;
const
VAR_INDEX_STORE
=
1
;
const
VAR_INDEX_SAN
A
TIZE
=
2
;
const
VAR_INDEX_SAN
I
TIZE
=
2
;
const
VAR_INDEX_ESCAPE
=
3
;
const
VAR_INDEX_DEFAULT
=
4
;
const
VAR_INDEX_MESSAGE
=
5
;
...
...
extension/Classes/Core/Evaluate.php
View file @
43ce06a4
...
...
@@ -392,7 +392,7 @@ class Evaluate {
$typeMessageViolate
=
(
$arrToken
[
VAR_INDEX_MESSAGE
]
===
null
||
$arrToken
[
VAR_INDEX_MESSAGE
]
===
''
)
?
SANITIZE_TYPE_MESSAGE_VIOLATE_CLASS
:
$arrToken
[
VAR_INDEX_MESSAGE
];
// search for value in stores
$value
=
$this
->
store
::
getVar
(
$arrToken
[
VAR_INDEX_VALUE
],
$arrToken
[
VAR_INDEX_STORE
],
$arrToken
[
VAR_INDEX_SAN
A
TIZE
],
$value
=
$this
->
store
::
getVar
(
$arrToken
[
VAR_INDEX_VALUE
],
$arrToken
[
VAR_INDEX_STORE
],
$arrToken
[
VAR_INDEX_SAN
I
TIZE
],
$foundInStore
,
$typeMessageViolate
,
$arrToken
[
VAR_INDEX_DEFAULT
]);
// escape ticks
...
...
extension/Classes/Core/Form/FormAction.php
View file @
43ce06a4
...
...
@@ -399,7 +399,7 @@ class FormAction {
*
* @param string $listOfFormElementNames E.g.: 'city, street, number'
*
* @return bool true if at lease one of the named elements is non empty on STORE_FORM (use SAN
A
TIZE_ALLOW_ALL to
* @return bool true if at lease one of the named elements is non empty on STORE_FORM (use SAN
I
TIZE_ALLOW_ALL to
* perform the check)
* @throws \CodeException
* @throws \UserFormException
...
...
extension/Tests/Unit/Core/EvaluateTest.php
View file @
43ce06a4
...
...
@@ -343,7 +343,7 @@ class EvaluateTest extends AbstractDatabaseTest {
$this
->
assertEquals
(
false
,
$eval
->
substitute
(
'a:V'
,
$foundInStore
));
$this
->
assertEquals
(
''
,
$foundInStore
);
// San
a
tize Class: digits
// San
i
tize Class: digits
$this
->
assertEquals
(
'1234567'
,
$eval
->
substitute
(
'a:F:digit'
,
$foundInStore
));
$this
->
assertEquals
(
STORE_FORM
,
$foundInStore
);
...
...
@@ -356,7 +356,7 @@ class EvaluateTest extends AbstractDatabaseTest {
$this
->
assertEquals
(
'1234567'
,
$eval
->
substitute
(
'a:F:all'
,
$foundInStore
));
$this
->
assertEquals
(
STORE_FORM
,
$foundInStore
);
// San
a
tize Class: text
// San
i
tize Class: text
$this
->
store
->
setVar
(
'a'
,
'Hello world @-_.,;: /()'
,
STORE_FORM
,
true
);
$this
->
assertEquals
(
'!!digit!!'
,
$eval
->
substitute
(
'a:F:digit'
,
$foundInStore
));
...
...
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