mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
WebUI: Display error when download fails
Previously we would still download the file but it would contain the error response, resulting in an invalid file. To test: export a .torrent file for a torrent that hasn't yet downloaded metadata PR #21696. Signed-off-by: Thomas Piccirello <thomas@piccirello.com>
This commit is contained in:
committed by
GitHub
parent
61ff683f11
commit
78a5e4ff3e
@@ -467,7 +467,7 @@ void WebApplication::configure()
|
||||
const QString contentSecurityPolicy =
|
||||
(m_isAltUIUsed
|
||||
? QString()
|
||||
: u"default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; object-src 'none'; form-action 'self';"_s)
|
||||
: u"default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; script-src 'self' 'unsafe-inline'; object-src 'none'; form-action 'self'; frame-src 'self' blob:;"_s)
|
||||
+ (isClickjackingProtectionEnabled ? u" frame-ancestors 'self';"_s : QString())
|
||||
+ (m_isHttpsEnabled ? u" upgrade-insecure-requests;"_s : QString());
|
||||
if (!contentSecurityPolicy.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user