Chocobo1
80f3b19356
Add Utils::String::toHtmlEscaped
2017-03-04 01:17:39 +02:00
Chocobo1
edaa7e85a7
[WebUI]: add X-XSS-Protection, X-Content-Type-Options, CSP header
2017-03-04 01:17:37 +02:00
ngosang
f9f7a8cbf2
[WebUI] Avoid clickjacking attacks
2017-03-04 01:17:35 +02:00
Chocobo1
7aef9828c9
[WebUI]: exclude insecure ciphers
2017-03-04 01:17:34 +02:00
Chocobo1
18ad972936
Code formatting
...
Remove extra private keyword
2017-03-04 01:17:33 +02:00
sledgehammer999
26c713851e
Use new create_torrent constructor were available.
2017-03-04 01:17:26 +02:00
Eugene Shalygin
f9b64c4e73
Disable proxy in WebUI HTTP server. Closes #6349 .
...
Due to a bug in Qt 5.8 (QTBUG-58706) QTcpServer tries to use HTTP proxy
when it is set as default app proxy (for instance via "http_proxy"
environment variable) and this breaks the server. So we disable any proxy
in it.
2017-03-04 01:17:25 +02:00
Chocobo1
83860afa60
Turn off port forwarding of WebUI by default for GUI users
2017-03-03 02:34:03 +02:00
falco
dd0537d8d2
fix queue overload for add torrent at session start
2017-03-03 02:34:00 +02:00
Chocobo1
3c50cc1d2c
Fix coverity issues
...
torrentcontentmodel: Use a variable to store filesCount
optionsdlg: add fallthrough comment to suppress warning
speedPlotview: initialize member
misc: fix wrong type used, add spaces
2017-03-03 02:33:59 +02:00
Chocobo1
78fdb68457
Use QString::toStdString()
...
Qt5 utilized the desired toUtf8() instead of toAscii().
2017-03-03 02:33:50 +02:00
Tim Delaney
bb1bd34ec0
Fix regex RSS matching. Closes #6337 .
...
--HG--
branch : magao-dev
2017-03-03 02:33:49 +02:00
Tim Delaney
a4a38d633c
Improve UI responsiveness during RSS downloading. Closes #873 , #1089 , #1235 , #5423 .
...
--HG--
branch : magao-dev
2017-03-03 02:17:34 +02:00
dzmat
34e56eade8
reduce methods accessibility from public to private
2017-03-03 02:17:31 +02:00
sledgehammer999
f577a26fe2
Immediately update torrent_status after manipulating super seeding mode. Partially fixes #6072 .
2017-03-03 02:14:35 +02:00
Tim Delaney
3f176d8265
Fix compilation error on Qt<5.4. Closes #6170 .
...
--HG--
branch : magao-dev
2017-03-03 02:14:34 +02:00
Tim Delaney
cbc001e059
RSS allow infinite range to extend beyond current season. Closes #800 , #3876 , #6170 .
...
--HG--
branch : magao-dev
2017-03-03 02:14:33 +02:00
Tim Delaney
a66ed05ecd
RSS parse torrent episodes like 1x01 as well as S01E01. Closes #2749 .
...
--HG--
branch : magao-dev
2017-03-03 02:14:32 +02:00
Tim Delaney
ec347d8dbe
Allow episode zero (special) and leading zeroes in RSS episode filter.
...
--HG--
branch : magao-dev
2017-03-03 02:14:31 +02:00
Tim Delaney
1a12e891ec
Allow | in RSS must contain. Closes #6171 .
...
--HG--
branch : magao-dev
2017-03-03 02:14:28 +02:00
Tim Delaney
89349f60b0
RSS episode filter refactoring and logging (prep for later commits).
...
--HG--
branch : magao-dev
2017-03-03 02:14:25 +02:00
Tim Delaney
787ae43d54
Move old RSS items to separate config file. Closes #6167 .
...
--HG--
branch : magao-dev
2017-03-03 02:14:04 +02:00
Falco
67bb2cc150
fix index overflow for torrents with invalid meta data or empty progress
2017-03-03 02:14:02 +02:00
Eugene Shalygin
a54a9e5487
cmake: make LibtorrentRasterbar::LibTorrent public dependency of qbt_base
...
If libtorrent include directory not in the compiler search path, we have
to pass it to all qbt targets, because session.h includes
libtorrent/version.hpp
2017-03-03 02:13:58 +02:00
thalieht
6bb189ea13
friendlyUnit: Properly replace spaces with non-breaking spaces
2017-03-03 02:11:42 +02:00
thalieht
8496f31e39
Increased number of digits after the decimal point for Gibibytes and above
2017-03-03 02:11:41 +02:00
sledgehammer999
08f634f748
Polish previous commit.
2017-03-03 02:11:40 +02:00
thalieht
129bf497c8
SearchTab: use saveSettings() and loadSettings() to handle header state
2017-03-03 02:11:33 +02:00
Tim Delaney
694311b2bd
Follow project coding style. Issue #2192 .
...
--HG--
branch : magao-dev
2017-03-03 02:11:28 +02:00
Chocobo1
b8081feac1
Refactor
...
Move default value to preference class
Rename variable
Reorder headers
Remove extra parentheses
2017-03-03 02:11:25 +02:00
Chocobo1
0333e23710
After files relocate, don't remove the old folder even if it is empty.
2017-03-03 02:08:00 +02:00
Chocobo1
7320a80caa
Refactor
2017-03-03 02:07:59 +02:00
Chocobo1
d20d04299e
Use the numbers from tracker scrape response. Closes #5048 , #6117 .
...
Add comments
Thanks to Ian Kent for helping investigate
2017-03-03 02:07:56 +02:00
dzmat
721d29edda
DRY violation fixed
2017-03-03 02:07:54 +02:00
Chocobo1
bc9cae199b
Put temp files in .qBittorrent directory. Closes #4462 .
2017-03-03 02:07:53 +02:00
Chocobo1
c38b250667
Remove unused header
2017-03-03 02:07:52 +02:00
sledgehammer999
101b2f3ad2
Remove settings to exchange trackers. It wasn't used by non-libtorrent clients. Also it has a privacy risk and you might be DDoSing someone. DHT makes it obsolete anyway.
2017-03-03 02:07:51 +02:00
Chocobo1
111b0df307
Fix warning: unused parameter ‘action’ [-Wunused-parameter]
2017-03-03 02:07:47 +02:00
Eugene Shalygin
8041af72cd
Fetch torrent status when generating final fastresume data
...
This is done to get correct queue position, which has to be written into
the fastresume file. See discussion in #6154 .
2017-03-03 02:07:46 +02:00
Eugene Shalygin
4be6d0b30f
Add queue repair code
...
This is a bit adjusted code created by nxd4, who shared it in issue
disappearing).
2017-03-03 02:07:45 +02:00
Eugene Shalygin
00d4f6141f
Do not remove added files unconditionally. Closes #6248
...
If removing of added torrents is enabled and dialog for adding torrents
is disabled, file guard was assuming that torrent is added successfully.
And that can be not the case if a user trying to add a broken torrent
file (or not a torrent file at all). Then this file gets deleted always.
Fix this by checking result of addTorrent_impl().
2017-03-03 01:46:56 +02:00
Eugene Shalygin
ab2411930a
Workaround problem with moc from Qt4 and #if
...
moc from Qt4 ignores Q_ENUMS when it is behind #if QT_VERSION check.
Therefore moc entries for enum in TorrentFileGuard were not generated
and the setting was not saving/loading. This closes #6103 , #5451
2017-03-03 01:46:54 +02:00
Eugene Shalygin
92428cee5d
Set upper version limit for QTBUG-52633
...
The bug seems to be fixed in version 5.7.1.
2017-03-03 01:46:28 +02:00
sledgehammer999
4cf549ff25
Fix share ratio limiting. Broken by commit 259b5e51c4. Closes #6039 #6048 .
2016-12-15 00:06:04 +02:00
Eugene Shalygin
9a0d25284c
Add a workaround for QTBUG-52633, qBt issue #5073
...
The QTBUG-52633 results in food of network interface changed events, libtorrent IP
rebind calls and flood in the qBt log. The work around is the check not only for
interface name, but for IP address on that interface before triggering the libtorrent rebind.
2016-12-14 02:04:12 +02:00
sledgehammer999
284e836992
New translations: Icelandic, Latvian, Malay, Occitan, Uzbek
...
Also re-run lupdate.
2016-12-13 02:11:45 +02:00
sledgehammer999
99f157927f
Polish previous commit.
2016-12-12 21:17:18 +02:00
Yez Ezey
664664394c
Change QSettings to IniFormat on macOS. Closes #5770 #5808
...
On macOS 10.12 Sierra, Apple changed the behaviour of CFPreferencesSetValue()
truncating data after a null character. https://bugreports.qt.io/browse/QTBUG-56344
Due to this, we have to move from native plist to IniFormat.
2016-12-12 21:17:17 +02:00
dzmat
a790901691
minimizing the number of warnings about deprecated auto_ptr
2016-12-12 21:17:17 +02:00
Chocobo1
fdc70eaa62
Change Utils::Fs::freeDiskSpaceOnPath() signature
...
refactor the function internals
2016-12-12 21:17:17 +02:00