summaryrefslogtreecommitdiffstats
path: root/src/WebAdmin.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-09 22:34:59 +0200
committermadmaxoft <github@xoft.cz>2014-08-09 22:56:06 +0200
commitdcef688ccc0ae60b001ce40fd591a2dfafbac294 (patch)
tree3494115d8618d19516350b809ec6264e0b4818fe /src/WebAdmin.h
parentMerge pull request #1295 from mc-server/crystal (diff)
downloadcuberite-dcef688ccc0ae60b001ce40fd591a2dfafbac294.tar
cuberite-dcef688ccc0ae60b001ce40fd591a2dfafbac294.tar.gz
cuberite-dcef688ccc0ae60b001ce40fd591a2dfafbac294.tar.bz2
cuberite-dcef688ccc0ae60b001ce40fd591a2dfafbac294.tar.lz
cuberite-dcef688ccc0ae60b001ce40fd591a2dfafbac294.tar.xz
cuberite-dcef688ccc0ae60b001ce40fd591a2dfafbac294.tar.zst
cuberite-dcef688ccc0ae60b001ce40fd591a2dfafbac294.zip
Diffstat (limited to '')
-rw-r--r--src/WebAdmin.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/WebAdmin.h b/src/WebAdmin.h
index d679a097c..018a27b69 100644
--- a/src/WebAdmin.h
+++ b/src/WebAdmin.h
@@ -134,6 +134,9 @@ public:
/** Escapes text passed into it, so it can be embedded into html. */
static AString GetHTMLEscapedString(const AString & a_Input);
+
+ /** Escapes the string for use in an URL */
+ static AString GetURLEncodedString(const AString & a_Input);
AString GetIPv4Ports(void) const { return m_PortsIPv4; }
AString GetIPv6Ports(void) const { return m_PortsIPv6; }
@@ -141,7 +144,7 @@ public:
// tolua_end
/** Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style) */
- AString GetBaseURL(const AStringVector& a_URLSplit);
+ static AString GetBaseURL(const AStringVector & a_URLSplit);
protected:
/** Common base class for request body data handlers */