mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 01:25:21 +02:00
fix: escape token for html context (#3966)
This commit is contained in:
parent
ae2eb2f1d1
commit
8a6798a227
5 changed files with 25 additions and 21 deletions
|
@ -104,9 +104,8 @@ final class BridgeCard
|
|||
<input type="hidden" name="bridge" value="{$bridgeClassName}" />
|
||||
EOD;
|
||||
|
||||
if ($token) {
|
||||
// todo: maybe escape the token?
|
||||
$form .= sprintf('<input type="hidden" name="token" value="%s" />', $token);
|
||||
if (Configuration::getConfig('authentication', 'token') && $token) {
|
||||
$form .= sprintf('<input type="hidden" name="token" value="%s" />', e($token));
|
||||
}
|
||||
|
||||
if (!empty($contextName)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue