Skip to content

Commit

Permalink
Merge pull request #537 from sebastian-meyer/fix-xss-issue
Browse files Browse the repository at this point in the history
Fix XSS issue
  • Loading branch information
sebastian-meyer authored Jul 30, 2020
2 parents 291efab + fee894c commit b028292
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Documentation/Settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ conf.py:
copyright: 2017
project: Kitodo.Presentation
version: 2.3
release: 2.3.0
release: 2.3.1
intersphinx_mapping:
t3tsref:
- http://docs.typo3.org/typo3cms/TyposcriptReference/
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'uploadfolder' => TRUE,
'createDirs' => '',
'clearCacheOnLoad' => FALSE,
'version' => '2.3.0',
'version' => '2.3.1',
'constraints' => array (
'depends' => array (
'php' => '7.0.0-',
Expand Down
2 changes: 1 addition & 1 deletion plugins/listview/class.tx_dlf_listview.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ protected function getSortingForm() {

if ($piVar != 'order' && $piVar != 'DATA' && !empty($value)) {

$sorting .= '<input type="hidden" name="'.$this->prefixId.'['.$piVar.']" value="'.htmlspecialchars($value).'" />';
$sorting .= '<input type="hidden" name="'.$this->prefixId.'['.preg_replace('/[^A-Za-z0-9_-]/', '', $piVar).']" value="'.htmlspecialchars($value).'" />';

}

Expand Down
2 changes: 1 addition & 1 deletion plugins/navigation/class.tx_dlf_navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function getPageSelector() {

if ($piVar != 'page' && $piVars != 'DATA' && !empty($value)) {

$output .= '<input type="hidden" name="'.$this->prefixId.'['.$piVar.']" value="'.htmlspecialchars($value).'" />';
$output .= '<input type="hidden" name="'.$this->prefixId.'['.preg_replace('/[^A-Za-z0-9_-]/', '', $piVar).']" value="'.htmlspecialchars($value).'" />';

}

Expand Down

0 comments on commit b028292

Please sign in to comment.