Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
[SECURITY] Use fullQuoteStr instead of htmlspecialchars
Browse files Browse the repository at this point in the history
  • Loading branch information
DDEV-Local User committed Oct 14, 2019
1 parent b93afba commit 91cc8da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions Classes/Hooks/PreProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ protected function findDirectRedirect($requestUri)
'tx_urlredirect_domain_model_config',
'hidden',
'0',
' AND ((use_reg_exp=0 AND request_uri=\'' . htmlspecialchars($requestUri) . '\') OR complete_domain=1) AND ' . implode(' AND ', $where),
'', 'complete_domain ASC'
sprintf(
' AND ((use_reg_exp=0 AND request_uri=%s) OR complete_domain=1) AND ' . implode(' AND ', $where),
$GLOBALS['TYPO3_DB']->fullQuoteStr($requestUri, 'tx_urlredirect_domain_model_config')
),'', 'complete_domain ASC'
);

if (empty($redirects)) {
Expand Down Expand Up @@ -147,8 +149,11 @@ protected function getSysDomainUid()
$domain = DatabaseUtility::getRecordRaw(
'sys_domain',
sprintf(
'domainName=\'%s\' AND redirectTo=\'\' AND hidden=0',
htmlspecialchars(GeneralUtility::getIndpEnv('HTTP_HOST'))
'domainName=%s AND redirectTo=\'\' AND hidden=0',
$GLOBALS['TYPO3_DB']->fullQuoteStr(
GeneralUtility::getIndpEnv('HTTP_HOST'),
'tx_urlredirect_domain_model_config'
)
),
'uid'
);
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'modify_tables' => '',
'clearCacheOnLoad' => 0,
'lockType' => '',
'version' => '1.2.1',
'version' => '1.2.2',
'constraints' => array(
'depends' => array(
'typo3' => '7.6.0-8.7.99',
Expand Down

0 comments on commit 91cc8da

Please sign in to comment.