summaryrefslogtreecommitdiffstats
path: root/src/WebAdmin.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-21 10:54:43 +0200
committerMattes D <github@xoft.cz>2015-04-21 10:54:43 +0200
commitde27f66b59439e6d6db01f30dc5eee9807028db4 (patch)
tree0c4cf152371dbe6b2a905a755d8ffdcd683c5d75 /src/WebAdmin.cpp
parentWebAdmin: Removed server name, shortened memory report. (diff)
downloadcuberite-de27f66b59439e6d6db01f30dc5eee9807028db4.tar
cuberite-de27f66b59439e6d6db01f30dc5eee9807028db4.tar.gz
cuberite-de27f66b59439e6d6db01f30dc5eee9807028db4.tar.bz2
cuberite-de27f66b59439e6d6db01f30dc5eee9807028db4.tar.lz
cuberite-de27f66b59439e6d6db01f30dc5eee9807028db4.tar.xz
cuberite-de27f66b59439e6d6db01f30dc5eee9807028db4.tar.zst
cuberite-de27f66b59439e6d6db01f30dc5eee9807028db4.zip
Diffstat (limited to 'src/WebAdmin.cpp')
-rw-r--r--src/WebAdmin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/WebAdmin.cpp b/src/WebAdmin.cpp
index aff3b4710..484626de3 100644
--- a/src/WebAdmin.cpp
+++ b/src/WebAdmin.cpp
@@ -234,7 +234,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPConnection & a_Connection, cHTTPReque
bool ShouldWrapInTemplate = ((BareURL.length() > 1) && (BareURL[1] != '~'));
// Retrieve the request data:
- cWebadminRequestData * Data = (cWebadminRequestData *)(a_Request.GetUserData());
+ cWebadminRequestData * Data = reinterpret_cast<cWebadminRequestData *>(a_Request.GetUserData());
if (Data == nullptr)
{
a_Connection.SendStatusAndReason(500, "Bad UserData");
@@ -244,6 +244,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPConnection & a_Connection, cHTTPReque
// Wrap it all up for the Lua call:
AString Template;
HTTPTemplateRequest TemplateRequest;
+ TemplateRequest.Request.URL = a_Request.GetURL();
TemplateRequest.Request.Username = a_Request.GetAuthUsername();
TemplateRequest.Request.Method = a_Request.GetMethod();
TemplateRequest.Request.Path = BareURL.substr(1);