mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
fix: escape token for html context (#3966)
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user