Chocobo1
6ca3e4f094
Add Utils::String::toHtmlEscaped
2017-03-03 21:28:30 +02:00
Chocobo1
7756dd80f3
[WebUI]: add X-XSS-Protection, X-Content-Type-Options, CSP header
2017-03-03 21:28:28 +02:00
ngosang
f5ad04766f
[WebUI] Avoid clickjacking attacks
2017-03-03 21:28:27 +02:00
Chocobo1
f9c39e3dac
[WebUI]: exclude insecure ciphers
2017-03-03 21:28:26 +02:00
Chocobo1
84bc011df5
Code formatting
...
Remove extra private keyword
2017-03-03 21:28:25 +02:00
sledgehammer999
b5f81a34cb
Use new create_torrent constructor were available.
2017-02-22 19:25:50 +02:00
sledgehammer999
ad4b691fa5
Merge pull request #6413 from evsh/no-proxy-in-webui-server
...
Disable proxy in WebUI HTTP server. Closes #6349 .
2017-02-21 13:15:22 +02:00
Eugene Shalygin
be8eab4e54
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-02-21 00:07:09 +01:00
sledgehammer999
4adcd03ec7
Merge pull request #6366 from Chocobo1/rand
...
Replace rand()
2017-02-20 01:49:27 +02:00
Chocobo1
511796f74e
Replace rand() by a true uniform distribution generator
2017-02-16 12:21:26 +08:00
Chocobo1
c7d10dc091
Turn off port forwarding of WebUI by default for GUI users
2017-02-16 12:21:26 +08:00
Tim Delaney
a844ccb06a
Cache rule regular expressions for performance
...
--HG--
branch : magao-dev
2017-02-11 18:43:50 +11:00
Tim Delaney
f9abd254f4
Use Perl-compatible regexes for RSS rules. Closes #6367 .
...
--HG--
branch : magao-dev
2017-02-11 16:33:18 +11:00
sledgehammer999
d045f64ebb
Merge pull request #6288 from Falcosc/fix_add_torrent_queue_overflow
...
fix queue overload for add torrent at session start
2017-02-08 22:46:58 +02:00
falco
ee239ddd1e
fix queue overload for add torrent at session start
2017-02-08 15:13:21 +00:00
sledgehammer999
73f762250c
Merge pull request #6358 from Chocobo1/coverity
...
Fix issues on coverity
2017-02-08 15:34:45 +02:00
Chocobo1
4ad541d066
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-02-08 13:49:47 +08:00
Chocobo1
cab10aa7b4
Use QString::toStdString()
...
Qt5 utilized the desired toUtf8() instead of toAscii().
2017-02-08 13:21:36 +08:00
sledgehammer999
179b686e42
Merge pull request #6176 from magao/issue873
...
Improve UI responsiveness during RSS downloading. Closes #873 , #1089 , #1235 , #5423
2017-02-06 16:17:08 +02:00
sledgehammer999
25c7c297e8
Merge pull request #6317 from dzmat/public_to_private
...
reduce methods accessibility from public to private
2017-02-06 00:11:38 +02:00
sledgehammer999
5046c36458
Immediately update torrent_status after manipulating super seeding mode. Partially fixes #6072 .
2017-02-05 22:02:33 +02:00
Tim Delaney
c0339d4f6a
Fix regex RSS matching. Closes #6337 .
...
--HG--
branch : magao-dev
2017-02-05 08:53:33 +11:00
dzmat
b167b4174e
reduce methods accessibility from public to private
2017-01-29 15:17:55 +07:00
Tim Delaney
5d185f1fcd
Fix compilation error on Qt<5.4. Closes #6170 .
...
--HG--
branch : magao-dev
2017-01-27 14:24:51 +11:00
sledgehammer999
3b3de81cb7
Merge pull request #6181 from magao/issue6170
...
RSS episode filter improvements. Closes #800 , #2749 , #3876 , #6170 .
2017-01-26 01:02:05 +02:00
sledgehammer999
354702140a
Merge pull request #6180 from magao/issue6171
...
Allow | in RSS must contain. Closes #6171 .
2017-01-25 23:27:59 +02:00
sledgehammer999
b9b8352a31
Merge pull request #6184 from magao/issue5539
...
RSS: allow resetting rule to no category. Closes #5539 .
2017-01-25 23:20:19 +02:00
sledgehammer999
077ad6506c
Merge pull request #6175 from magao/issue6167
...
Move old RSS items to separate config file. Closes #6167 .
2017-01-22 04:47:52 +02:00
sledgehammer999
043ae1eb17
Merge pull request #6278 from Falcosc/fix_incompleate_file_crash
...
fix index overflow for torrents with invalid meta data or empty progress
2017-01-22 01:14:16 +02:00
sledgehammer999
9225d9ab2b
Merge pull request #6279 from evsh/cmake
...
cmake: compilation fixes
2017-01-21 18:28:54 +02:00
Eugene Shalygin
13d9dea8ac
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-01-21 16:40:44 +01:00
Falco
84759d4f20
fix index overflow for torrents with invalid meta data or empty progress
2017-01-21 14:35:09 +01:00
sledgehammer999
5b35981c85
Merge pull request #5774 from thalieht/unit_precision
...
Increase number of digits after the decimal point. Closes #5053
2017-01-21 14:05:26 +02:00
thalieht
f8213f5d56
friendlyUnit: Properly replace spaces with non-breaking spaces
2017-01-21 12:03:05 +02:00
thalieht
311b060c70
Increased number of digits after the decimal point for Gibibytes and above
2017-01-21 12:02:15 +02:00
sledgehammer999
f4fa000ba3
Polish previous commit.
2017-01-21 02:59:33 +02:00
sledgehammer999
68ecbf4185
Merge pull request #5420 from thalieht/alignment
...
Changes and additions in search, peerlist, transferlist
2017-01-21 02:58:32 +02:00
sledgehammer999
c8ddd68a7a
Merge pull request #6212 from magao/issue2192
...
Follow project coding style. Issue #2192 .
2017-01-20 23:13:06 +02:00
sledgehammer999
1376d8fa7b
Merge pull request #6084 from Chocobo1/set_locale
...
Set default locale
2017-01-20 20:14:20 +02:00
Chocobo1
0517a3eb63
Fix rss icon too large in rss settings dialog
...
Give a name to the rss icon (in .ui file)
Add helper function: Utils::Misc::largeIconSize()
Group functions under the same #ifdef
2017-01-20 13:45:50 +08:00
sledgehammer999
fed325a54d
Merge pull request #6140 from Chocobo1/relocateNoRemove
...
After files relocate, don't remove the old folder even if it is empty
2017-01-19 15:52:09 +02:00
sledgehammer999
dcab1da8ab
Merge pull request #6138 from Chocobo1/stats2
...
Use the numbers from tracker scrape response
2017-01-19 11:49:47 +02:00
Chocobo1
a2bb947dcc
After files relocate, don't remove the old folder even if it is empty.
2017-01-19 14:21:04 +08:00
Chocobo1
fa45ba102c
Refactor
2017-01-19 14:21:04 +08:00
Chocobo1
e37a696e7d
Refactor
...
Move default value to preference class
Rename variable
Reorder headers
Remove extra parentheses
2017-01-19 13:33:34 +08:00
Chocobo1
72a6f7ae24
Use the numbers from tracker scrape response. Closes #5048 , #6117 .
...
Add comments
Thanks to Ian Kent for helping investigate
2017-01-19 13:17:50 +08:00
sledgehammer999
a178268b31
Merge pull request #5959 from dzmat/DRY_fix_minor
...
Little DRY violation fixed
2017-01-19 01:49:21 +02:00
sledgehammer999
ba03fb30f3
Merge pull request #5987 from Chocobo1/temp_dir
...
Put temp files in .qBittorrent directory
2017-01-19 01:33:57 +02:00
sledgehammer999
a092cb9bda
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-01-19 01:13:55 +02:00
sledgehammer999
b5bf6df058
Merge pull request #6139 from Chocobo1/warnings
...
Fix compile warning: unused parameter ‘action’
2017-01-18 23:42:58 +02:00
Eugene Shalygin
b6e64c13d8
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-01-18 18:59:03 +01:00
Eugene Shalygin
6cd233dd61
Add queue repair code
...
This is a bit adjusted code created by nxd4, who shared it in issue
disappearing).
2017-01-18 17:27:20 +01:00
Eugene Shalygin
4c13f155ff
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-01-18 00:04:26 +01:00
sledgehammer999
e230cde6c4
Merge pull request #6108 from evsh/fix-6103
...
Workaround problem with moc from Qt4 and #if. Closes #6103 , #5451
2017-01-12 02:08:59 +02:00
Eugene Shalygin
de403dcd9d
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-01-12 00:42:37 +01:00
sledgehammer999
c384cc8c8c
Move new icons to their own theme folder.
2017-01-11 18:02:26 +02:00
Eugene Shalygin
7b594a635e
Set upper version limit for QTBUG-52633
...
The bug seems to be fixed in version 5.7.1.
2017-01-11 00:14:16 +01:00
Tim Delaney
70ce12372d
Follow project coding style. Issue #2192 .
...
--HG--
branch : magao-dev
2017-01-08 11:46:01 +11:00
Tim Delaney
2244b7cb66
RSS episode filter refactoring and logging (prep for later commits).
...
--HG--
branch : magao-dev
2016-12-31 18:01:22 +11:00
Chocobo1
bc41e2034c
Fix warning: unused parameter ‘action’ [-Wunused-parameter]
2016-12-27 20:19:20 +08:00
sledgehammer999
4f59caf3ca
Fix share ratio limiting. Broken by commit 259b5e51c4
. Closes #6039 #6048 .
2016-12-15 00:04:50 +02:00
sledgehammer999
26e8072c84
Merge pull request #5332 from evsh/fix-qt5-log-flood
...
Add a workaround for QTBUG-52633, qBt issue #5073
2016-12-13 19:37:17 +02:00
Eugene Shalygin
9a123c42c3
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-13 17:18:58 +01:00
sledgehammer999
283511116e
New translations: Icelandic, Latvian, Malay, Occitan, Uzbek
...
Also re-run lupdate.
2016-12-13 02:09:28 +02:00
sledgehammer999
d88ec48468
Polish previous commit.
2016-12-11 23:24:55 +02:00
sledgehammer999
5a006d5980
Merge pull request #5810 from ghost/macOSpref
...
Change QSettings to IniFormat on macOS. Closes #5770 #5808
2016-12-11 23:23:22 +02:00
sledgehammer999
4e8ca90b23
Merge pull request #5958 from dzmat/auto_ptr_eviction
...
minimizing the number of warnings about deprecated auto_ptr
2016-12-10 21:23:42 +02:00
sledgehammer999
07edb7b74e
Merge pull request #6010 from Chocobo1/warnings
...
Fix memory leak
2016-12-10 21:22:41 +02:00
dzmat
abeff99ba0
minimizing the number of warnings about deprecated auto_ptr
2016-12-08 19:24:52 +07:00
Chocobo1
5cf86d3677
Change Utils::Fs::freeDiskSpaceOnPath() signature
...
refactor the function internals
2016-12-08 15:36:34 +08:00
thalieht
b2144f7928
SearchTab: use saveSettings() and loadSettings() to handle header state
2016-12-07 18:19:54 +02:00
sledgehammer999
ba1e5b8d58
Merge pull request #6013 from Chocobo1/mac_warnings
...
Fix warnings on macOS
2016-12-07 16:48:35 +02:00
sledgehammer999
49ed0765e1
Merge pull request #5928 from Chocobo1/rss-view
...
Change RSS view layout to horizontal
2016-12-07 01:44:56 +02:00
sledgehammer999
0d1b70e248
Decouple dependency between Session and BandwidthScheduler during Session init. Closes #6007 .
2016-12-07 01:33:48 +02:00
Chocobo1
ab187f06da
Fix unused variable warnings
2016-12-07 01:31:39 +08:00
Chocobo1
0b313e0bc3
Remove unused variable
2016-12-05 20:20:01 +08:00
Chocobo1
7f2f78a816
Simplify #if expression
2016-12-05 20:05:08 +08:00
Chocobo1
e1c9e3b9ed
Fix memory leak
...
call unicode version of the function directly
2016-12-05 20:04:21 +08:00
Chocobo1
5608827429
Simplify function call
2016-12-05 20:04:13 +08:00
sledgehammer999
f7194eecb0
Merge pull request #5997 from Chocobo1/msvc_warnings
...
Fix msvc warnings
2016-12-02 19:15:59 +02:00
Chocobo1
5d2d22a218
Fix warning C4090.
...
different '__unaligned' qualifiers.
2016-12-02 15:32:27 +08:00
Chocobo1
11c2ee81c1
Fix warning C4267.
...
conversion from 'size_t' to 'int', possible loss of data.
2016-12-02 15:32:27 +08:00
Chocobo1
cffa729ac5
Put temp files in .qBittorrent directory. Closes #4462 .
2016-12-01 01:39:27 +08:00
Chocobo1
d84461c9b2
Remove unused header
2016-11-29 17:31:14 +08:00
dzmat
4b18bb29a6
DRY violation fixed
2016-11-18 23:05:47 +07:00
zywo
6e7d3b8135
Fix CMake compilation error.
2016-11-17 16:20:36 +01:00
Chocobo1
a415f14fac
Rename splitter names
2016-11-17 11:12:33 +08:00
Chocobo1
6b835f53ce
Use new key for storing RSS splitter_v value.
...
So that old value won't override the RSS layout.
2016-11-11 00:35:40 +08:00
Tim Delaney
b84d9201fd
Allow | in RSS must contain. Closes #6171 .
...
--HG--
branch : magao-dev
2016-11-07 17:46:27 +11:00
sledgehammer999
90bbe3379d
Merge pull request #5882 from onto/pvs-studio
...
Fixes and improvements after check by PVS-Studio
2016-11-07 00:18:46 +02:00
Tim Delaney
390d7a8124
Improve UI responsiveness during RSS downloading. Closes #873 , #1089 , #1235 , #5423 .
...
--HG--
branch : magao-dev
2016-11-07 08:56:06 +11:00
Tim Delaney
32bdb73f70
RSS allow infinite range to extend beyond current season. Closes #800 , #3876 , #6170 .
...
--HG--
branch : magao-dev
2016-11-07 07:18:06 +11:00
thalieht
c7a04e27f4
Log: set embedded Tracker [OFF] msg type as info
2016-11-06 11:55:31 +02:00
Tim Delaney
96c1187f47
RSS parse torrent episodes like 1x01 as well as S01E01. Closes #2749 .
...
--HG--
branch : magao-dev
2016-11-06 15:26:48 +11:00
Tim Delaney
64f9cbbf54
Allow episode zero (special) and leading zeroes in RSS episode filter.
...
--HG--
branch : magao-dev
2016-11-06 22:51:33 +11:00
Tim Delaney
cecff159a0
Move old RSS items to separate config file. Closes #6167 .
...
--HG--
branch : magao-dev
2016-11-06 12:00:09 +11:00
Anton Lashkov
1233c5b67b
Fix name of variable same as class member
2016-11-04 21:44:00 +04:00
sledgehammer999
b358809328
Merge pull request #5760 from borouhin/patch-1
...
Don't request client SSL certificate (closes issue #3883 )
2016-11-02 23:34:00 +02:00
sledgehammer999
259b5e51c4
Don't ever stop seeding forced torrents. Closes #5784 .
2016-11-02 18:25:09 +02:00
sledgehammer999
146d4e049a
Some more compiler warnings fixed.
2016-11-02 17:49:50 +02:00