Compare commits

...

2 Commits

Author SHA1 Message Date
DivineHawk
0defb7d79d WebUI: Use workaround for IOS file picker
PR #18837.
Fixes #18683.
2023-04-16 14:30:30 +03:00
七海千秋
1e400df324 Set "SameSite=None" if CSRF Protection is disabled
PR #18843.
2023-04-16 14:27:49 +03:00
2 changed files with 6 additions and 0 deletions

View File

@@ -683,6 +683,8 @@ void WebApplication::sessionStart()
QByteArray cookieRawForm = cookie.toRawForm();
if (m_isCSRFProtectionEnabled)
cookieRawForm.append("; SameSite=Strict");
else if (cookie.isSecure())
cookieRawForm.append("; SameSite=None");
setHeader({Http::HEADER_SET_COOKIE, QString::fromLatin1(cookieRawForm)});
}

View File

@@ -166,6 +166,10 @@
if (submitted)
window.parent.closeWindows();
});
if (Browser.platform === 'ios') {
$('fileselect').accept = ".torrent";
}
</script>
<div id="upload_spinner" class="mochaSpinner"></div>
</body>