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
14136c87
Commit
14136c87
authored
Oct 10, 2018
by
Elias Villiger
Browse files
F5450 - MySQL Exception: underline faulty area - #refs 5450
parent
8203e8f7
Pipeline
#975
passed with stage
in 1 minute and 47 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Resources/Public/icons/wavy-underline.gif
0 → 100644
View file @
14136c87
815 Bytes
extension/qfq/qfq/exceptions/AbstractException.php
View file @
14136c87
...
...
@@ -129,8 +129,22 @@ class AbstractException extends \Exception {
$editForm
=
$this
->
buildFormLink
(
$storeSystem
);
}
$arrMerged
=
OnArray
::
htmlentitiesOnArray
(
array_merge
(
$arrMsg
,
$arrDebugShow
));
if
(
!
empty
(
$os
=
$arrMerged
[
ERROR_MESSAGE_OS
]))
{
$beforeMatch
=
htmlentities
(
"the right syntax to use near '"
,
ENT_QUOTES
);
$afterMatch
=
htmlentities
(
"' at line [0-9]*$"
,
ENT_QUOTES
);
if
(
preg_match
(
"/mysqli: 1064.*
$beforeMatch
.*
$afterMatch
/"
,
$os
))
{
$match
=
explode
(
"
$beforeMatch
"
,
$os
,
2
)[
1
];
$match
=
preg_split
(
"/
$afterMatch
/"
,
$match
)[
0
];
$splitSql
=
explode
(
$match
,
$arrMerged
[
EXCEPTION_SQL_FINAL
]);
$match
=
Support
::
wrapTag
(
'<span class="qfq-wavy-underline">'
,
$match
);
$highlightedSql
=
implode
(
$match
,
$splitSql
);
$arrMerged
[
EXCEPTION_SQL_FINAL
]
=
$highlightedSql
;
}
}
$htmlDebug
=
OnArray
::
arrayToHtmlTable
(
array_merge
(
OnArray
::
htmlentitiesOnArray
(
array_merge
(
$arrMsg
,
$arrDebugShow
))
,
[
'Edit'
=>
$editForm
]),
'Debug'
,
EXCEPTION_TABLE_CLASS
);
array_merge
(
$arrMerged
,
[
'Edit'
=>
$editForm
]),
'Debug'
,
EXCEPTION_TABLE_CLASS
);
$htmlDebug
=
str_replace
(
"
\n
"
,
"<br>"
,
$htmlDebug
);
$arrDebugHiddenClean
=
OnArray
::
htmlentitiesOnArray
(
$arrDebugHidden
);
...
...
less/qfq-bs.css.less
View file @
14136c87
...
...
@@ -737,4 +737,8 @@ select.qfq-locked:invalid {
.qfq-droplet-container.qfq-droplet-blue:before {
border-color: transparent #25adf1 #25adf1 transparent;
}
.qfq-wavy-underline {
background: url('../icons/wavy-underline.gif') bottom repeat-x
}
\ No newline at end of file
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