Vladimir Golovnev (Glassez)
8eb9117033
Fix temporary subfolder isn't deleted
2017-07-28 20:17:34 +03:00
sledgehammer999
cc388fe772
Bump API_VERSION and API_VERSION_MIN to 15.
2017-07-18 22:47:13 +03:00
sledgehammer999
78f2afa239
Fix duplicate variable name in .ui file.
2017-07-18 22:47:02 +03:00
sledgehammer999
245e8e09bb
Fix Qt4 compilation.
2017-07-18 16:04:50 +03:00
sledgehammer999
986cff9e66
Fix typo.
2017-07-18 03:33:40 +03:00
Tom Piccirello
73f477072f
Add Status column to webui (addresses #6815 ) ( #7032 )
...
* Add Status column to webui (addresses #6815 )
2017-07-18 03:22:46 +03:00
Chocobo1
7e9ece2701
Load the domain list at least once on startup.
...
Fixup of 0532d546d7
2017-07-18 03:22:41 +03:00
Eugene Shalygin
ba8641f1ac
Set interface for outgoing traffic.
...
This sets interface for outgoing traffic to the same as for ingoing
(listetning) with libtorrent 1.1.x.
2017-07-18 03:21:31 +03:00
Chocobo1
76c6041031
Implement HTTP host header filtering
...
This filtering is required to defend against DNS rebinding attack.
2017-07-18 03:21:26 +03:00
Chocobo1
2ae8472a78
Avoid modifing request headers
2017-07-18 02:53:58 +03:00
Chocobo1
dc9df6d681
Revert back to intended fallthrough
...
Partial revert a7f4ea8b18
2017-07-18 02:53:57 +03:00
Chocobo1
aed9e8f1b7
Fix value comparison. Closes #7081 .
...
`category` could be 'undefined'.
Fixup of a7f4ea8b18 .
2017-07-18 02:53:55 +03:00
Thomas Piccirello
317689bd5d
Fix javascript errors and follow best practices
2017-07-18 02:51:42 +03:00
Thomas Piccirello
1ad66ba791
Skip username/password check for active sessions ( closes #6860 )
2017-07-18 02:51:34 +03:00
sledgehammer999
b4fb193d4a
Fix Qt 5.2 build.
2017-07-03 18:17:27 +03:00
sledgehammer999
6b659804c7
Pad shorter python versions. Closes #6877 .
2017-07-03 18:17:18 +03:00
Chocobo1
0831320f17
[WebAPI] Convert all header name constants to lowercase
...
This save us another transition when some day we implements HTTP/2
(which all headers are in lowercase).
2017-06-26 01:33:17 +03:00
Chocobo1
8d2fb06f65
[WebUI] relax CSRF defense. Closes #6882 .
...
Allow HTTP request which has neither Origin nor Referer header included
2017-06-26 01:33:16 +03:00
Chocobo1
bf6f103142
Fix KEEP_ALIVE_DURATION value
...
I intended to specify 7 seconds, which should be 7000 milliseconds
2017-06-26 01:33:15 +03:00
Chocobo1
7c2437e5f2
[WebUI]: Implement CSRF defense
...
Bump API version
2017-06-01 02:28:07 +03:00
sledgehammer999
dc315c080b
Revert "Remove workaround". Required since we also support Qt4 in this branch.
...
This reverts commit 2ba3104337 .
2017-06-01 02:28:06 +03:00
sledgehammer999
971c340b53
Fix format-truncation warning.
2017-06-01 01:19:55 +03:00
Chocobo1
76b9b02177
Fix focusing on the previously opened dialog didn't work
...
Placing modeless dialog A on top of modeless dialog B, then open dialog B again,
the expected behavior is B on top of A.
2017-06-01 01:19:47 +03:00
Eugene Shalygin
6a3e7a12d8
cmake: fix compilation with Qt 4
...
In qmake we define QStringLiteral=QLatin1String, so define it in cmake
builds too.
2017-05-31 19:28:32 +02:00
sledgehammer999
d92ef3fa4d
Fix Qt4 build.
2017-05-31 00:34:21 +03:00
Eugene Shalygin
89d4cb257f
Fix crash in download piece bar
...
When torrent size is smaller than the image width, bytes per pixel was
set to zero and code was crashing. Set it to -1 instead, as we do when
image is empty. This will disable highliting, but our algorithm does not
work in this case anyway.
2017-05-31 00:34:21 +03:00
Chocobo1
47ebb0df58
Add new webUI API. Closes #6457 .
...
Now getting piece information for a specific torrent is possible via:
* Returns an array of states (integers) of pieces in order. Defined as:
"0=not downloaded", "1=downloading", "2=downloaded".
GET /query/getPieceStates/<torrent_hash>
* Returns an array of hashes (strings) of pieces in order:
GET /query/getPieceHashes/<torrent_hash>
2017-05-31 00:34:20 +03:00
Chocobo1
71169abaa6
[WebUI] Make cookie parsing robust
...
Previously cookie name such as "<any string>SID" will be mistakenly
accepted as "SID" session ID, this commit fixes it.
Use QString::isEmpty()
2017-05-31 00:34:19 +03:00
Chocobo1
83dd0ae86e
Refactor out helper function Utils::String::unquote
...
Remove redundant include
2017-05-31 00:34:18 +03:00
Chocobo1
c9500d933b
Fix renaming files is not case sensitive on Windows platform. Closes #5128 .
2017-05-31 00:34:17 +03:00
Naikel Aparicio
b8787460a4
Fix slow filtering in WebUI. Fixup 7aadf644e0.
2017-05-31 00:34:17 +03:00
Naikel Aparicio
d031264d62
Cosmetic fixes for WebUI upload and download windows
2017-05-31 00:34:16 +03:00
KingLucius
63b408c743
remove ExtraTorrent plugin
2017-05-31 00:34:15 +03:00
Chocobo1
6b91510d71
Set icon height in html instead of js
...
Fixup of d302e4fb92
2017-05-31 00:34:14 +03:00
Chocobo1
f1a7e8921a
[WebUI] Fix connection status icon too large. Closes #6804 .
2017-05-31 00:34:13 +03:00
Eugene Shalygin
78c34b948e
Fix build error.
2017-05-31 00:34:12 +03:00
Frédéric Brière
690db070c7
Properly sort categories case-insensitively in filter widget. Closes #6708 .
2017-05-31 00:34:11 +03:00
Frédéric Brière
0979936266
Turn isSpecialItem() into a CategoryFilterModel static method.
2017-05-31 00:34:11 +03:00
Frédéric Brière
ba23b41616
Set "category" column as case-insensitive in TransferListSortModel.
...
(From what I can tell, it would appear that the sorting was already
case-insensitive by default. This makes it explicit.)
2017-05-31 00:34:10 +03:00
Frédéric Brière
412584e9c3
Leave categories order intact in "Add new torrent" dialog.
...
The categories are already properly sorted in AddNewTorrentDialog; this
second case-sensitive sort undid all that.
This partially addresses #6708 .
2017-05-31 00:34:09 +03:00
Thomas Piccirello
13aa3c3088
Use less permissive Content Security Policy
...
Adjust content order
2017-05-31 00:34:08 +03:00
thalieht
067c406c94
webUI: increase the number of digits after the decimal point
2017-05-31 00:34:08 +03:00
Eugene Shalygin
8536e79f2a
cmake: include searchengine resources
2017-05-31 00:34:07 +03:00
Thomas Piccirello
70b98d903e
Return status indicating if at least one torrent was successfully added
2017-05-31 00:34:06 +03:00
Chocobo1
1997a29769
Tweak CachedSettingValue
...
* Add another constructor to save a call to proxyFunc when its not needed
note that this call is a virtual function call
* Pass in proxyFunc by const reference
* Move get methods together
2017-05-31 00:34:05 +03:00
Chocobo1
f6e4f48386
Fix double click on system tray icon causing program to open and
...
minimize immediately
Closes #5826 .
Simply ignore DoubleClick event, as it always come after Trigger
event
2017-05-31 00:34:05 +03:00
Eugene Shalygin
10002984e6
Follow project coding style. Issue #2192 .
2017-05-31 00:34:04 +03:00
Frédéric Brière
2fa2d36c3b
findIncompleteFiles(): Replace dir listing with individual checks. Closes #6265 .
...
Looking for incomplete files in a new torrent by using a pre-generated
directory listing presents several disadvantages:
- It requires us to extract the top-level directory name (in case it
was renamed).
- It requires us to know whether the top-level directory was stripped.
- In the latter case, it may result in recursively traversing the
entire contents of all downloaded torrents.
Calling QFile::exists() individually for each file solves all these
issues.
In so doing, the handling of single-file and multiple-file torrents are
rendered pretty much identical, and can therefore be merged.
2017-05-31 00:34:03 +03:00
Eugene Shalygin
ceed9b468e
Do not attempt to show detailed tooltips without torrent metadata. Closes #6768 .
...
Computations for detailed tooltips are not protected against unavailable
metadata, that leads to asserts or crashes. But since those tooltips are
useless in this case, do not show them at all. Inform user that detailed
tooltip becomes available once torrent metadata are fetched.
2017-05-31 00:34:02 +03:00
sledgehammer999
f19854c054
[WebUI]Use the same layout in the Speed tab in preferences as the GUI.
2017-05-31 00:34:02 +03:00