return 0; /* different username */
}
-static const String str_type_eq("type=");
+static String str_type_eq;
void
FtpStateData::checkUrlpath()
{
int l;
size_t t;
+ if (str_type_eq.undefined()) //hack. String doesn't support global-static
+ str_type_eq="type=";
+
if ((t = request->urlpath.rfind(';')) != std::string::npos) {
if (request->urlpath.substr(t+1,t+1+str_type_eq.size())==str_type_eq) {
typecode = (char)xtoupper(request->urlpath[t+str_type_eq.size()+1]);
static Logfile *storelog = NULL;
-static const String str_unknown="unknown";
+static String str_unknown;
void
storeLog(int tag, const StoreEntry * e)
MemObject *mem = e->mem_obj;
HttpReply const *reply;
+ if (str_unknown.undefined())
+ str_unknown="unknown"; //hack. Delay initialization as string doesn't support global variables..
+
if (NULL == storelog)
return;