Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
c4d41638
Commit
c4d41638
authored
Jan 31, 2019
by
Carsten Rose
Browse files
temporary disable file readable
parent
0bef5e32
Pipeline
#1452
passed with stage
in 2 minutes and 3 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
extension/Source/core/AbstractBuildForm.php
View file @
c4d41638
...
...
@@ -3169,9 +3169,9 @@ abstract class AbstractBuildForm {
throw
new
UserFormException
(
"Missing parameter '"
.
FE_TEXT_SOURCE
.
"'"
,
ERROR_IO_READ_FILE
);
}
if
(
$formElement
[
FE_TEXT_SOURCE
]
!=
''
&&
!
is_readable
(
$formElement
[
FE_TEXT_SOURCE
]))
{
throw
new
UserFormException
(
"Error reading file: "
.
$formElement
[
FE_TEXT_SOURCE
],
ERROR_IO_READ_FILE
);
}
#
if ($formElement[FE_TEXT_SOURCE] != '' && !is_readable($formElement[FE_TEXT_SOURCE])) {
#
throw new UserFormException("Error reading file: " . $formElement[FE_TEXT_SOURCE], ERROR_IO_READ_FILE);
#
}
if
(
!
empty
(
$value
)
&&
json_decode
(
$value
)
===
null
)
{
throw
new
UserFormException
(
"Annotate data: JSON structure not valid"
,
ERROR_BROKEN_JSON_STRUCTURE
);
...
...
Write
Preview
Supports
Markdown
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