summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-08-13 13:01:13 +0200
committerTycho <work.tycho+git@gmail.com>2014-08-13 13:01:13 +0200
commit2321d2af41e935d8353b18592c29d58c766a5658 (patch)
tree5e84c171c98c3dd49f012733032dd83e0c712a39
parentRemoved unused method (diff)
downloadcuberite-2321d2af41e935d8353b18592c29d58c766a5658.tar
cuberite-2321d2af41e935d8353b18592c29d58c766a5658.tar.gz
cuberite-2321d2af41e935d8353b18592c29d58c766a5658.tar.bz2
cuberite-2321d2af41e935d8353b18592c29d58c766a5658.tar.lz
cuberite-2321d2af41e935d8353b18592c29d58c766a5658.tar.xz
cuberite-2321d2af41e935d8353b18592c29d58c766a5658.tar.zst
cuberite-2321d2af41e935d8353b18592c29d58c766a5658.zip
-rw-r--r--src/WebAdmin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/WebAdmin.cpp b/src/WebAdmin.cpp
index 6882d7bc4..23eedbd14 100644
--- a/src/WebAdmin.cpp
+++ b/src/WebAdmin.cpp
@@ -176,9 +176,9 @@ void cWebAdmin::HandleWebadminRequest(cHTTPConnection & a_Connection, cHTTPReque
}
// Check if the contents should be wrapped in the template:
- AString URL = a_Request.GetBareURL();
- ASSERT(URL.length() > 0);
- bool ShouldWrapInTemplate = ((URL.length() > 1) && (URL[1] != '~'));
+ AString BareURL = a_Request.GetBareURL();
+ ASSERT(BareURL.length() > 0);
+ bool ShouldWrapInTemplate = ((BareURL.length() > 1) && (BareURL[1] != '~'));
// Retrieve the request data:
cWebadminRequestData * Data = (cWebadminRequestData *)(a_Request.GetUserData());
@@ -193,7 +193,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPConnection & a_Connection, cHTTPReque
HTTPTemplateRequest TemplateRequest;
TemplateRequest.Request.Username = a_Request.GetAuthUsername();
TemplateRequest.Request.Method = a_Request.GetMethod();
- TemplateRequest.Request.Path = URL.substr(1);
+ TemplateRequest.Request.Path = BareURL.substr(1);
if (Data->m_Form.Finish())
{
@@ -236,7 +236,7 @@ void cWebAdmin::HandleWebadminRequest(cHTTPConnection & a_Connection, cHTTPReque
return;
}
- AString BaseURL = GetBaseURL(URL);
+ AString BaseURL = GetBaseURL(BareURL);
AString Menu;
Template = "{CONTENT}";
AString FoundPlugin;