thalieht
525fdd6c2b
Coding style, use nullptr and other minor things
7 years ago
Matthew Fioravante
05c92e652c
Report TCPServer errorString() if webui fails to listen to port
7 years ago
Vladimir Golovnev (Glassez)
3ec992474d
Implement TorrentCategoryDialog class
7 years ago
Chocobo1
c5ddbcfb5b
WebAPI: fix addPaused wrong default behavior
...
Add helper function
Sort include header
7 years ago
Chocobo1
72b0ba36ae
Refactor
...
Merge statements
Use case-insensitive contains()
Add const
Use value(), this avoids inserting empty values.
Use range based for loop
7 years ago
Chocobo1
b107c0671d
WebAPI: fix root_folder default behavior
...
Bug was introduced in
6b33db3ae3
7 years ago
Chocobo1
45a0c5558a
Add comboBox for selecting BitTorrent protocol. Closes #6316 .
...
Use unicode string C_UTP in place of "uTP"
7 years ago
Thomas Piccirello
b6596f9957
Reposition "Priority" menu option in WebUI to match gui ( closes #7072 )
7 years ago
thalieht
6b33db3ae3
Create root folder option when adding a torrent in WebUI
7 years ago
Allan Nordhøy
5c18db240c
Spelling: HTTP/HTTPS
7 years ago
Chocobo1
64d5e329c0
Sort the resource lists
...
Update RCC header
7 years ago
Chocobo1
9ef1e32327
WebAPI: fix validating wrong header field. Closes #7311 .
...
X-Forwarded-Host is a foreign proxy setting, it isn't the same as
qbt's local setting and thus it makes no sense to verify it.
7 years ago
Chocobo1
65ca490b64
Wrap class & functions in anonymous namespace
...
Rename vars
Cleanup class interfaces
Pass by reference whenever possible
7 years ago
Thomas Piccirello
4846b0ec28
Use single quotes for char.
...
Use case insensitive compare.
Swap conditionals
7 years ago
Thomas Piccirello
771033a449
Add auto torrent management to webui context menu (addresses #6815 )
7 years ago
Vladimir Golovnev (qlassez)
cff6a64e9f
Use qUtf8Printable() for logging strings
...
qDebug(), qInfo(), qWarning(), qCritical(), qFatal() expect %s arguments
to be UTF-8 encoded, while qPrintable() converts to local 8-bit encoding.
Therefore qUtf8Printable() should be used for logging strings instead of
qPrintable().
7 years ago
Thomas Piccirello
798c230634
Add option to rename torrent from WebUI
...
Addresses #6815 .
7 years ago
Chocobo1
3e9311b096
Correctly handle translation
...
Fixup of 07a85a1018
7 years ago
Chocobo1
1bfb8d35cd
Move "Copy hash" menu item above "Copy magnet link"
...
Fix wrong "Copy hash" icon used in webUI
Fixup of 145641ac41
7 years ago
Tom Piccirello
07a85a1018
Set torrent location from webui context menu (addresses #6815 ) ( #7062 )
...
* Add option to set torrent location from webui context menu (addresses #6815 )
* Update debug messages
* Use logger
* Remove redundant curly braces
* Remove message
* Use log message from transferlistwidget
* Use QDir
* Remove unused import
* Check if newLocation is an empty string
7 years ago
Tom Piccirello
145641ac41
Add copy options to webui context menu (addresses #6815 ) ( #7036 )
...
* Add copy options to webui context menu
Add Copy Hash to gui (closes #6964 )
* Use switch statement
* Use camel case, switch from signal to qaction.
* Rename variable
* Change variable name
7 years ago
sledgehammer999
802cd89ec9
Bump API_VERSION and API_VERSION_MIN to 15.
7 years ago
Tom Piccirello
11b44407af
Add Status column to webui (addresses #6815 ) ( #7032 )
...
* Add Status column to webui (addresses #6815 )
7 years ago
Chocobo1
07780b48c5
Load the domain list at least once on startup.
...
Fixup of 0532d546d7
7 years ago
Chocobo1
0532d546d7
Implement HTTP host header filtering
...
This filtering is required to defend against DNS rebinding attack.
7 years ago
Chocobo1
18651c8d01
Use Qt5 connect syntax
7 years ago
Chocobo1
55e038b165
Avoid modifing request headers
7 years ago
Chocobo1
be61e8f2fd
Revert back to intended fallthrough
...
Partial revert a7f4ea8b18
7 years ago
Chocobo1
448d937c15
Fix value comparison. Closes #7081 .
...
`category` could be 'undefined'.
Fixup of a7f4ea8b18
.
7 years ago
Thomas Piccirello
a7f4ea8b18
Fix javascript errors and follow best practices
7 years ago
Thomas Piccirello
cd5a55d711
Skip username/password check for active sessions ( closes #6860 )
7 years ago
Chocobo1
cdb8f4bc61
[WebUI] relax CSRF defense. Closes #6882 .
...
Allow HTTP request which has neither Origin nor Referer header included
8 years ago
Chocobo1
087856d3d8
[WebUI]: Implement CSRF defense
...
Bump API version
8 years ago
Eugene Shalygin
74cecb1b6c
Replace C-style casts with C++ ones
8 years ago
Chocobo1
3933790bda
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>
8 years ago
Chocobo1
f35a5c8085
[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()
8 years ago
Naikel Aparicio
03b2decab6
Fix slow filtering in WebUI. Fixup 7aadf644e0
.
8 years ago
Naikel Aparicio
9fc6de77ca
Cosmetic fixes for WebUI upload and download windows
8 years ago
Chocobo1
5529a7713c
Set icon height in html instead of js
...
Fixup of d302e4fb92
8 years ago
Chocobo1
d302e4fb92
[WebUI] Fix connection status icon too large. Closes #6804 .
8 years ago
Naikel Aparicio
9ba00d7035
Implemented share limit by seeding time
8 years ago
Thomas Piccirello
7cf1d844b0
Return status indicating if at least one torrent was successfully added
8 years ago
Thomas Piccirello
1b5852ad0b
Use less permissive Content Security Policy
...
Adjust content order
8 years ago
Vladimir Golovnev (Glassez)
8a6d8f3953
Use cached SessionStatus and CacheStatus
8 years ago
thalieht
e075274177
webUI: increase the number of digits after the decimal point
8 years ago
sledgehammer999
b1f1823c65
[WebUI]Use the same layout in the Speed tab in preferences as the GUI.
8 years ago
sledgehammer999
0addeafc6b
Add missing unit sizes in misc.js
8 years ago
sledgehammer999
44c5a9beff
[WebUI]Use translatable strings in Statistics dialog.
8 years ago
sledgehammer999
e177799ada
[WebUI]Make the context obligatory for translatable strings. Also delete duplicate strings from extra translations.
8 years ago
Chocobo1
5e50d8ed91
WebUI: Fix checkbox hidden. Closes #6642 .
8 years ago