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
d953e9d1
Commit
d953e9d1
authored
Dec 09, 2018
by
Carsten Rose
Browse files
AbstractBuildForm.php: fixed problem with invalid preg_match() pattern
parent
9f00db94
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
d953e9d1
...
...
@@ -2978,7 +2978,7 @@ abstract class AbstractBuildForm {
if
(
strpos
(
$formElement
[
FE_FILE_MIME_TYPE_ACCEPT
],
','
)
!==
false
)
{
$ua
=
$this
->
store
->
getVar
(
'HTTP_USER_AGENT'
,
STORE_CLIENT
,
SANITIZE_ALLOW_ALNUMX
);
// Look for " Version/11.0 Mobile/15A5370a Safari/" or " Version/9.0.2 Safari/"
$rc
=
preg_match
(
' Version
\
/.*Safari
\
/'
,
$ua
,
$matches
);
$rc
=
preg_match
(
'
;
Version/.*Safari/
;
'
,
$ua
,
$matches
);
// But not like " Version/4.0 Chrome/52.0.2743.98 Safari/"
if
(
$rc
==
1
&&
false
===
strpos
(
$matches
[
0
],
' Chrome/'
))
{
$formElement
[
FE_FILE_MIME_TYPE_ACCEPT
]
=
''
;
...
...
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