Vladimir Golovnev
771c58d000
WebAPI: Allow to specify session cookie name
...
PR #18384 .
Closes #18329 .
2 years ago
brvphoenix
b33dc7d831
Unify the way to generate the language list in WebUI and GUI
...
PR #17994 .
2 years ago
Chocobo1
109c45bb95
Allow to use subnet notation in reverse proxy list
...
Closes #17475 .
2 years ago
Chocobo1
851374e517
Rename function
2 years ago
Chocobo1
082e6f8830
Apply i18n translation only to built-in WebUI
2 years ago
Chocobo1
ee38124db7
Optimize symbolic links checking
2 years ago
Chocobo1
e06e1d9911
Throw error exception properly
2 years ago
Chocobo1
3851e76179
Remove special handling of icons
2 years ago
Chocobo1
aa6b29fe7e
Set HTTP method restriction on WebAPI actions
...
PR #17548 .
2 years ago
Chocobo1
5d1115f591
Remove compile-time conditional
...
This checking should be universally applied and not limited to certain OS.
2 years ago
Vladimir Golovnev
f8a304abdc
Implement base classes for application components
...
PR #17219 .
2 years ago
Tom Piccirello
fb7f7d0c75
Add support for exporting .torrent from WebUI
...
PR #16968 .
3 years ago
Requi
669b67e666
WebAPI: return correct status
...
Fix web API returning Not Found instead of Forbidden.
When not having a session the API would return "Not Found" instead of "Forbidden" when trying to access a non-public endpoint.
PR #16866 .
3 years ago
Vladimir Golovnev
4471a6377e
Have separate API controller instances per session
...
PR #16848 .
3 years ago
Chocobo1
4ca6de2b54
Revise string literal usage
...
PR #16703 .
3 years ago
Chocobo1
efc04645b7
Use QString literals
...
It covers src/webui and enables `QT_NO_CAST_FROM_ASCII`.
3 years ago
Chocobo1
ab64ee872b
Use QString literals
...
The plan is to define `QT_NO_CAST_FROM_ASCII` eventually.
PR #16561 .
3 years ago
Vladimir Golovnev
dd1bd8ad10
Implement class for handling filesystem paths
...
PR #15915 .
3 years ago
Vladimir Golovnev (Glassez)
399d3ad85a
Replace QStringRef with QStringView
3 years ago
HiFiPhile
f5315d9ba7
Add WebUI reverse proxy source IP resolution ( #15047 )
...
Co-authored-by: qix67
Co-authored-by: HiFiPhile <admin@hifiphile.com>
3 years ago
Vladimir Golovnev (Glassez)
97c7f3bc67
Raise minimum Qt version to 5.14
4 years ago
Chocobo1
ef79546508
Add `connection_speed` to advanced settings
...
Now we follow libtorrent current default value 30.
Closes #6973 .
Also bump WebAPI version.
4 years ago
Vladimir Golovnev (Glassez)
61d2ff359b
Use QRegularExpression instead of deprecated QRegExp
...
Now it follows closely the definition of wildcard for glob patterns.
The backslash (\) character is not an escape char in this context.
In order to match one of the special characters, place it in square
brackets (for example, [?]).
4 years ago
Vladimir Golovnev (Glassez)
c41df9ffbd
Improve coding style
4 years ago
Thomas Piccirello
6e4f49fc57
Always specify Content-Type in Web API error responses
5 years ago
Chocobo1
02c25dbe2a
Move WebUI icons to its own folder
...
After this change: "http://<server>/icons" will point to "src/icons"
folder and "http://<server>/images" points to the real "images" folder
in the relative path.
5 years ago
Chocobo1
be152f45c9
Define and use Http::HeaderMap type
5 years ago
Chocobo1
d57b9be706
Rename function
5 years ago
Chocobo1
74a2168bc1
Define and use a proper HTTP header structure
5 years ago
Chocobo1
957d697aee
Prebuild HTTP headers as much as possible
...
This avoids some branching when building a HTTP response.
5 years ago
Chocobo1
2729c0cb6d
Suppress misleading warning message
...
QString::split() was giving a non-empty QStringList, and
that caused Session::setBannedIPs() to emit misleading warning message.
5 years ago
Chocobo1
bb80b378c1
Add ability to send custom HTTP headers
5 years ago
FranciscoPombal
691d5e5d89
WebUI: Implement "Secure" flag for session cookie
...
Closes #11724 .
Option is enabled by default for users using qBittorrent's built-in HTTPS capabilities. This flag will never be set if qBittorrent is using plain HTTP.
Users using HTTPS reverse proxies, like "qbt <-> (http) <-> proxy <-> (https) <-> user" should override the flag in the proxy in order to set it, if they wish to do so.
5 years ago
Chocobo1
8fe8cbd3d1
Reuse code path in switch cases
5 years ago
Chocobo1
f907328bdc
Add const to class function
5 years ago
Chocobo1
230949ee3b
Cache and reuse detected MIME type
5 years ago
Chocobo1
7a5e883cd2
Revise inline keyword usage
...
And let compiler decide whether to inline functions.
5 years ago
Chocobo1
89124bdcc8
Add WebAPI session timeout settings
...
Raise default timeout to 1 hour.
6 years ago
Chocobo1
e288de7ec1
Forward declare as much as possible
6 years ago
Chocobo1
c6f3da1097
Improve removeIf() to support set types
...
We can now replace QMutable*Iterator by removeIf() which usage is more consistent with other
algorithm functions.
6 years ago
Chocobo1
bd8d70bf60
Refactor HTTP query parsing
6 years ago
Chocobo1
69d29af097
Fix '+' char not decoded to space correctly
...
Closes #10606 .
6 years ago
Chocobo1
375de4f8a6
Replace QMap with QHash when sensible
6 years ago
Chocobo1
49b57904f9
Use a random number for WebUI cache busting
...
Also fetch qbt version info via WebAPI properly.
6 years ago
CzBiX
d254a98662
Always use index.html as default page
6 years ago
sledgehammer999
5c63ad3b95
Raise minimum Qt version to 5.9.0
6 years ago
thalieht
8c944bd4e1
Avoid repeating the return type
6 years ago
thalieht
947c7e1d64
Convert to range-based for loop
6 years ago
Vladimir Golovnev (Glassez)
b0446380c6
Separate URL components before percent-decoding
...
Allow special characters in query string parameters.
Closes #9116 .
6 years ago
Vladimir Golovnev (Glassez)
2ce3aa9731
Drop legacy WebAPI support
6 years ago