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
6c009759
Commit
6c009759
authored
Oct 15, 2019
by
Carsten Rose
Browse files
Merge branch '9298fileGetContentTimeoutError' into 'master'
refs #9298 fix timeout of file_get_contents See merge request
!184
parents
cf58b259
ce30b8eb
Pipeline
#2484
passed with stages
in 2 minutes and 34 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
extension/Classes/Core/Helper/DownloadPage.php
View file @
6c009759
...
...
@@ -52,19 +52,19 @@ class DownloadPage {
"verify_peer"
=>
false
,
"verify_peer_name"
=>
false
,
),
'http'
=>
array
(
'timeout'
=>
1200
,
),
);
if
(
isset
(
$_COOKIE
[
SESSION_NAME
]))
{
$cookie
=
array
(
$cookie
_http
=
array
(
// Copy cookie: to forward current QFQ user session
'http'
=>
array
(
'method'
=>
"GET"
,
'header'
=>
"Accept-language: en
\r\n
"
.
"Cookie: "
.
SESSION_NAME
.
"="
.
$_COOKIE
[
SESSION_NAME
]
.
"
\r\n
"
,
'timeout'
=>
600
,
),
);
$ctx
=
array_merge
(
$ctx
,
$cookie
);
$ctx
[
'http'
]
=
array_merge
(
$ctx
[
'http'
]
,
$cookie
_http
);
}
// The current session needs to be closed, cause the SESSION needs to be opened again by processing get_file_contents()
...
...
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