Vladimir Golovnev (Glassez)
c893729d62
Implement DownloadRequest helper
2018-08-12 11:08:06 +03:00
Chocobo1
945466968c
Reduce queries to python version
...
Instead of doing at least 2 queries for python infos, now requires only
1 query (in ideal condition), and the result is cached.
2018-08-12 11:08:06 +03:00
Chocobo1
54f080b755
Move related functions to Utils::Python
2018-08-12 11:08:06 +03:00
Goshik
bfad14d552
Create non-existing path in setLocationAction()
...
When using qbittorrent-nox it is not always possible to manually create
the target path for torrent moving. This commit allows automatic path
creation. It also allows to display error messages in the
'Set location' window.
2018-08-12 11:08:06 +03:00
Chocobo1
2972e1596d
Move optimization flags
...
Those flags aren't strictly required when compiling but they are
recommended to be on.
2018-08-12 11:08:06 +03:00
Chocobo1
987d2aae88
Turn on Control Flow Guard for MSVC builds
...
The performance impact should be negligible according to the
documentation on msdn.
Closes #9101 .
2018-08-12 11:08:06 +03:00
hannsen
4707d34fad
Properly normalize version string before parsing it
...
This allows python scripts to be formatted in PEP 8 style.
2018-08-12 11:08:06 +03:00
Chocobo1
2ffc09d097
Move qm_gen.pri
2018-08-12 11:08:06 +03:00
Chocobo1
afa8d6bb8f
Move .desktop file
2018-08-12 11:08:06 +03:00
Chocobo1
a37ead98e8
Move .ico files into icons dir
2018-08-12 11:08:06 +03:00
Chocobo1
c73cd8d618
Move .qrc files into its own directory
2018-08-12 11:08:06 +03:00
thalieht
800a3aa61e
Change file names and classes names to match them
2018-08-12 11:08:06 +03:00
Thomas Piccirello
ebd815be75
Add WebUI support for Mac ⌘ (Command) key
...
The Command key will now be recognized for WebUI Table multi-selection, as Ctrl is.
2018-08-12 11:08:06 +03:00
Thomas Piccirello
ef669acf89
Implement key functions in Class and refactor
2018-08-12 11:08:06 +03:00
thalieht
ac6426eab1
Fix coding style
2018-08-12 11:08:06 +03:00
Chocobo1
b107b745f2
Revise usage of BOOST_NO_CXX11_RVALUE_REFERENCES
...
Now the flag will be present when building with boost version <= 1.59.
Closes #8990 .
2018-08-12 11:08:06 +03:00
Goshik
3d851a448f
Show current save path in 'Set location' window
...
The feature is useful when the user needs to move their torrent to a
sub or parent folder. If more than one torrent is chosen, the path
of the first selected torrent is used. The window was made wider to
allow more convenient editing of long paths.
2018-08-12 11:08:06 +03:00
Chocobo1
ce133f01aa
Replace deprecated function on macOS
...
Closes #8993 .
2018-08-12 11:08:06 +03:00
Chocobo1
492d378537
Disable certain mouse wheel events in Options dialog
...
The mouse wheel events for QComboBox & QSpinBox widgets in Options
dialog are filtered out.
2018-08-12 11:08:06 +03:00
Chocobo1
7ece484423
Remove duplicate private sections in class
...
And group related methods & variables together.
2018-08-12 11:08:06 +03:00
Chocobo1
be5ad63e21
Replace post-increment with pre-increment
...
And post-decrement with pre-decrement.
2018-08-12 11:08:06 +03:00
Eugene Shalygin
bdac8f8db8
Fix option name in winconf-xxx.cmake
...
The mistake was made by commit 7712d0ada0
2018-08-12 11:08:06 +03:00
Eugene Shalygin
bb893e70c5
Refactor CMake build scripts
...
1. Use FeatureSummary module to show configuration results.
2. Invert option()/find_package() relationship: instead of
calling find_package(... REQUIRED) when option is set, rely on optional
find package call and PackageName_FOUND variable.
3. Refactor handling options that result in simple preprocessor defines
(actually copy the snippet from libtorrent) so that everything is done
in a single function call.
4. Populate target properties in order to get rid of
include_directories() calls.
2018-08-12 11:08:06 +03:00
Chocobo1
57ec9db532
Fix WebUI cache behavior for css files
...
The style.css in public & private folders share the same URI, this
confuses the browser cache, so rename one of them.
2018-08-12 11:08:06 +03:00
Chocobo1
0287481001
Send Cache-Control header in WebUI responses
...
Tune the caching time to be shorter, in case there is a program
update.
Change the cacheability to private, as WebUI resources are not intended
to be cached at proxy.
For uncacheable responses, send out "no-store" explicitly to halt
browser caching.
2018-08-12 11:08:06 +03:00
Chocobo1
0167496ecb
Add changelog link in program updater
...
Closes #8997 .
2018-08-12 11:08:06 +03:00
Thomas Piccirello
d86cf193a0
Rename variables for clarity
2018-08-12 11:08:06 +03:00
Thomas Piccirello
246cad1108
Add form-action to CSP
...
This option restricts all form submissions to the WebUI's origin.
qBittorrent only ever submits forms to the origin, so this is intended as a security measure.
2018-08-12 11:08:06 +03:00
Thomas Piccirello
23bf86a8a8
Add upgrade-insecure-requests to CSP when HTTPS is enabled
...
This option automatically upgrades all http connections to https.
It ensures http urls cannot be accessed when in https mode, and is intended as a security measure.
2018-08-12 11:08:06 +03:00
thalieht
6ce4c885b9
Fix coding style
2018-08-12 11:08:06 +03:00
Chocobo1
faf84e483a
Reset WebUI ban counter on login success
2018-08-12 11:08:06 +03:00
Chocobo1
576004c840
Add logging messages in WebUI login action
2018-08-12 11:08:06 +03:00
Chocobo1
c93b05c293
Replace QRegExp with QRegularExpression
...
Revise `static` keyword usage, static is added to frequently used
instances.
2018-08-12 11:08:06 +03:00
Chocobo1
55c3813fac
Cleanup header include order
...
Add missing header.
Cleanup license.
2018-08-12 11:08:06 +03:00
Chocobo1
725c6857be
Improve WebUI security measures
...
CSP was erroneously disabled in bad4d94f77
when clickjacking protection is off, now it is back.
Also added CSP 'frame-ancestors' directive when clickjacking
protection is enabled.
2018-08-12 11:08:06 +03:00
Chocobo1
86767c9ab4
Refactor function
2018-08-12 11:08:06 +03:00
Chocobo1
46aa631d2b
Improve DownloadFromURL behavior
...
URL should be considered case sensitive.
2018-08-12 11:08:06 +03:00
Chocobo1
7c61a937c9
Move DownloadFromURLDialog to its own file
...
Simplify code, no functionality changes.
Remove debug messages.
Capitalize dialog name.
Capitalize class name.
Update license text.
2018-08-12 11:08:06 +03:00
Chocobo1
b8d65dcc45
Add missing header include
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
b9ab83eaf2
Don't use RSS feed URLs as base for file names
...
RSS feed URLs can be too long and exceed max path limit.
Add RSS feed UIDs and use UIDs as base for file names instead of URLs.
Closes #8399 .
2018-08-12 11:08:06 +03:00
Chocobo1
8b7b563992
Add constexpr to IndexInterval class
...
Add const to IndexRange private members.
Remove redundant inline specifier.
Add missing parentheses.
2018-08-12 11:08:06 +03:00
Chocobo1
b813a878d7
Add constexpr to TriStateBool class
2018-08-12 11:08:06 +03:00
Chocobo1
54e486c389
Improve Utils::Version class
...
Add operator>=() and operator<=().
More methods are suitable to be constexpr.
Remove redundant boundary checking.
2018-08-12 11:08:06 +03:00
Chocobo1
12d0a3acc1
Add option to control CSRF protection
...
Some users are using WebUI with simple port-forwarding from their router,
providing an option to control the protection will save them from setting up an
non-trival web proxy.
Closes #7274 .
2018-08-12 11:08:06 +03:00
Chocobo1
6ad2a13386
Add option to control WebUI clickjacking protection
...
Some users actually want embedding WebUI into their custom build iframe.
Closes #7370 .
2018-08-12 11:08:06 +03:00
Chocobo1
2a9c401db9
Update Options dialog layout in WebUI
2018-08-12 11:08:06 +03:00
sledgehammer999
ea5a29018f
Bump to 4.1.1
release-4.1.1
2018-05-27 21:35:07 +03:00
sledgehammer999
c8d0a715e8
Update Changelog
2018-05-27 21:30:13 +03:00
sledgehammer999
2cfc6514ab
Sync translations from Transifex and run lupdate
2018-05-27 21:03:53 +03:00
sledgehammer999
1d78bc7206
Bump Web API version
2018-05-27 21:03:53 +03:00