summaryrefslogtreecommitdiffstats
path: root/source/cWebPlugin_Lua.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 10:12:54 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-01 10:12:54 +0100
commitbb49f0e021fb1fbefad44d944233fb1cf72c495c (patch)
treeebb0f2b40a3987eddf126c368237c0c60e4e6518 /source/cWebPlugin_Lua.cpp
parentFixed a sigsegv on *nix (cFile double-closing files) (diff)
downloadcuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.gz
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.bz2
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.lz
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.xz
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.tar.zst
cuberite-bb49f0e021fb1fbefad44d944233fb1cf72c495c.zip
Diffstat (limited to 'source/cWebPlugin_Lua.cpp')
-rw-r--r--source/cWebPlugin_Lua.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/source/cWebPlugin_Lua.cpp b/source/cWebPlugin_Lua.cpp
index bb3f79226..ab397173e 100644
--- a/source/cWebPlugin_Lua.cpp
+++ b/source/cWebPlugin_Lua.cpp
@@ -8,6 +8,15 @@
#include "cWebAdmin.h"
+
+
+
+extern bool report_errors(lua_State* lua, int status);
+
+
+
+
+
static std::string SafeString( const std::string& a_String )
{
std::string RetVal;
@@ -24,8 +33,8 @@ static std::string SafeString( const std::string& a_String )
}
-extern bool report_errors(lua_State* lua, int status);
-extern std::vector<std::string> StringSplit(std::string str, std::string delim);
+
+
struct cWebPlugin_Lua::sWebPluginTab
{
@@ -130,7 +139,7 @@ void cWebPlugin_Lua::Initialize()
std::pair< std::string, std::string > cWebPlugin_Lua::GetTabNameForRequest( HTTPRequest* a_Request )
{
std::pair< std::string, std::string > Names;
- std::vector<std::string> Split = StringSplit( a_Request->Path, "/" );
+ AStringVector Split = StringSplit(a_Request->Path, "/");
if( Split.size() > 1 )
{