Chocobo1
4940a77d12
[WebUI]: Print error messages upon receiving invalid header fields
7 years ago
Chocobo1
e78d8b9fcc
Convert tab into whitespaces
7 years ago
Chocobo1
f350977cb4
WebUI: add optional parameters for /command/download & /command/upload
...
Specifically:
torrent name: string
download limit, upload limit: number in bytes, default: -1 (unlimited)
sequential download, first last piece prio: boolean true/false, default: false
7 years ago
Chocobo1
a652baadb5
Add file-to-piece-index mappings in /query/propertiesFiles command
...
Also do the following cleanups:
Use string constant QB_EXT
Remove redundant variable
Add const
7 years ago
Eugene Shalygin
db35bb54e1
Make BitTorrent::TorrentState strongly-typed enum
...
This is needed to forward declare this type and pass it by value.
Conversion from/to QVariant are hanled via Q_DECLARE_METATYPE, while
TorrentState::toString() function was used in webui only and as such is
moved there.
7 years ago
Chocobo1
5185eeb7ef
Die gracefully when failed to initialize web server with qbt-nox
7 years ago
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
8 years ago
Chocobo1
0532d546d7
Implement HTTP host header filtering
...
This filtering is required to defend against DNS rebinding attack.
8 years ago
Chocobo1
18651c8d01
Use Qt5 connect syntax
8 years ago
Chocobo1
55e038b165
Avoid modifing request headers
8 years ago
Chocobo1
be61e8f2fd
Revert back to intended fallthrough
...
Partial revert a7f4ea8b18
8 years ago
Chocobo1
448d937c15
Fix value comparison. Closes #7081 .
...
`category` could be 'undefined'.
Fixup of a7f4ea8b18
.
8 years ago
Thomas Piccirello
a7f4ea8b18
Fix javascript errors and follow best practices
8 years ago
Thomas Piccirello
cd5a55d711
Skip username/password check for active sessions ( closes #6860 )
8 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