WebAdmin: Manually exported string conversion functions.
ToLua generated an extra return value for GetHTMLEscapedString() and GetURLEncodedString(), making them difficult to use.
This commit is contained in:
@@ -132,17 +132,17 @@ public:
|
||||
/** Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style) */
|
||||
AString GetBaseURL(const AString & a_URL);
|
||||
|
||||
AString GetIPv4Ports(void) const { return m_PortsIPv4; }
|
||||
AString GetIPv6Ports(void) const { return m_PortsIPv6; }
|
||||
|
||||
// tolua_end
|
||||
|
||||
/** 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; }
|
||||
|
||||
// tolua_end
|
||||
|
||||
/** Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style) */
|
||||
static AString GetBaseURL(const AStringVector & a_URLSplit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user