diff options
author | Darrell Anderson <[email protected]> | 2012-03-21 22:55:48 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-03-21 22:55:48 -0500 |
commit | 5af9907fee05f882f8d2422e47198ebf61d97bb7 (patch) | |
tree | 5f31682a2cf6cb479b3170ec6d0d79f382397634 /plugins/webinterface/httpserver.cpp | |
parent | c6c4865cd4bb5b203de3a0db0cc2182b240570d3 (diff) | |
download | ktorrent-5af9907fee05f882f8d2422e47198ebf61d97bb7.tar.gz ktorrent-5af9907fee05f882f8d2422e47198ebf61d97bb7.zip |
Update ktorrent package to 2.2.8 and fix internal geoip database.
This resolves bug report 363.
Diffstat (limited to 'plugins/webinterface/httpserver.cpp')
-rw-r--r-- | plugins/webinterface/httpserver.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/webinterface/httpserver.cpp b/plugins/webinterface/httpserver.cpp index 4d582a7..c85b7f1 100644 --- a/plugins/webinterface/httpserver.cpp +++ b/plugins/webinterface/httpserver.cpp @@ -433,6 +433,14 @@ namespace kt const char* ptr = data.data(); Uint32 len = data.size(); int pos = TQString(data).find("\r\n\r\n"); + + if (!session.logged_in || !checkSession(hdr)) + { + // You can't post torrents if you are not logged in + // or the session is not OK + redirectToLoginPage(hdlr); + return; + } if (pos == -1 || pos + 4 >= len || ptr[pos + 4] != 'd') { |