Chocobo1
b234fcec9c
[WebUI] Use POST for logout command
...
This is to avoid browser being smart to prefetch the link then logging
out the user.
7 years ago
Chocobo1
1a45145c1e
[WebUI] Add check to avoid type error after logout
7 years ago
Chocobo1
c1a282aa7b
Fix missing qbt logo on login page in webUI. Closes #7953 .
7 years ago
Thomas Piccirello
e1f8e6aa6f
Reposition Total Size column to match gui
7 years ago
sledgehammer999
4e96a1065e
Bump API_VERSION to 16.
7 years ago
Chocobo1
27090f0cfb
Remove superfluous QString::fromUtf8()
7 years ago
Chocobo1
77f66be493
[WebUI] Fix logo missing in login page
7 years ago
Vladimir Golovnev (Glassez)
71bb6538db
Fix WebUI error handling
7 years ago
Thomas Piccirello
95bf63330e
Add ip subnet whitelist for bypassing webui auth
7 years ago
sledgehammer999
ffa6f7ea34
Bump API_VERSION to 16.
7 years ago
Chocobo1
aa4107478e
[WebAPI] Improve error messages
...
Also refactor to use class methods
7 years ago
Chocobo1
fc0628d35b
Allow SMTP sender to be set. Closes #7575 .
7 years ago
Chocobo1
157b809e21
[WebUI] Improve log messages
7 years ago
sledgehammer999
c887a162ba
Fix row height/width in webui for country flags.
...
Patch by Chocobo1.
7 years ago
sledgehammer999
52df71ad3a
Use svg icons for the country flags.
...
Closes #6223 .
7 years ago
Chocobo1
d6ddc90199
Reinitialize webUI server when "IP address" setting changed
...
An app restart won't be necessary from now on.
7 years ago
Matthew Fioravante
8cd243b06b
Add WebUi\Address config option
7 years ago
Chocobo1
ce362f0e5e
WebAPI refactor: utilize parseBool() function
...
Coding style cleanup
Rename variable
Return const reference
Add const
7 years ago
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