mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Search/Forms (#383)
* do not prefil search form with unchecked user input * thx @Endalaust
This commit is contained in:
@@ -313,7 +313,7 @@ class QuestList extends BaseType
|
||||
if (!$this->curTpl)
|
||||
return null;
|
||||
|
||||
$title = htmlentities($this->getField('name', true));
|
||||
$title = Util::htmlEscape($this->getField('name', true));
|
||||
$level = $this->curTpl['level'];
|
||||
if ($level < 0)
|
||||
$level = 0;
|
||||
|
||||
@@ -786,7 +786,7 @@ abstract class Util
|
||||
return $data;
|
||||
}
|
||||
|
||||
return htmlspecialchars($data, ENT_QUOTES, 'utf-8');
|
||||
return htmlspecialchars($data, ENT_QUOTES | ENT_DISALLOWED | ENT_HTML5, 'utf-8');
|
||||
}
|
||||
|
||||
public static function jsEscape($data)
|
||||
|
||||
Reference in New Issue
Block a user