Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit c8c82e3

Browse files
author
Jamie Snape
committed
Escape variables in keyfiles module
1 parent 654070a commit c8c82e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/keyfiles/Notification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getItemMenuLink($params)
4646
}
4747
$webroot = Zend_Controller_Front::getInstance()->getBaseUrl();
4848

49-
return '<li><a href="'.$webroot.'/'.$this->moduleName.'/download/item?itemId='.$params['item']->getKey().
49+
return '<li><a href="'.$webroot.'/'.$this->moduleName.'/download/item?itemId='.htmlspecialchars($params['item']->getKey(), ENT_QUOTES, 'UTF-8').
5050
'"><img alt="" src="'.$webroot.'/core/public/images/icons/key.png" /> Download key files</a></li>';
5151
}
5252

0 commit comments

Comments
 (0)