CC-4897: XSS exploit on library page
This commit is contained in:
parent
7238790c41
commit
1f0b9fa5dc
2 changed files with 3 additions and 3 deletions
|
@ -269,7 +269,7 @@ class Application_Model_StoredFile
|
|||
$md = array();
|
||||
foreach ($this->_dbMD as $dbColumn => $propelColumn) {
|
||||
$method = "get$propelColumn";
|
||||
$md[$dbColumn] = $this->_file->$method();
|
||||
$md[$dbColumn] = htmlspecialchars($this->_file->$method());
|
||||
}
|
||||
|
||||
return $md;
|
||||
|
@ -300,7 +300,7 @@ class Application_Model_StoredFile
|
|||
if (isset($dbmd_copy[$value])) {
|
||||
$propelColumn = $dbmd_copy[$value];
|
||||
$method = "get$propelColumn";
|
||||
$md[$constant] = $this->_file->$method();
|
||||
$md[$constant] = htmlspecialchars($this->_file->$method());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue