use wcf\system\exception\UserInputException;
use wcf\system\WCF;
use wcf\util\ArrayUtil;
+use wcf\util\StringUtil;
/**
* Condition implementation for trophies.
$returnValue = "";
foreach ($trophies as $trophy) {
/** @noinspection PhpVariableVariableInspection */
- $returnValue .= "<label><input type=\"checkbox\" name=\"".$identifier."[]\" value=\"".$trophy->trophyID."\"".(in_array($trophy->trophyID, $this->$identifier) ? ' checked' : "")."> ".$trophy->getTitle()."</label>";
+ $returnValue .= "<label><input type=\"checkbox\" name=\"".$identifier."[]\" value=\"".$trophy->trophyID."\"".(in_array($trophy->trophyID, $this->$identifier) ? ' checked' : "")."> " . StringUtil::encodeHTML($trophy->getTitle()) . "</label>";
}
return $returnValue;
$data = unpack($format, $binaryData);
// Extract the properties
- $header['checksum'] = octdec(trim($data['checksum']));
+ $header['checksum'] = @octdec(trim($data['checksum']));
if ($header['checksum'] == $checksum) {
$header['filename'] = trim($data['filename']);
$header['mode'] = octdec(trim($data['mode']));