Hey Torsten,
2014-06-02 12:02 GMT+02:00 Torsten Schulz <tssch...@gmx.net>:
> Hi Koen,
>
> the first two are really a segfault. I know the position, but at this
> point of development it isn't important to fix it.
>
> The webserver:
> Server version: Apache/2.2.22 (Linux/SUSE)
>
> Modules:
> actions alias auth_basic authn_file authz_host authz_groupfile
> authz_default authz_user autoindex cgi dir env expires include log_config
> mime negotiation setenvif ssl userdir php5 reqtimeout fastcgi headers perl
> python rewrite dav dav_fs auth_digest dav_lock fcgid
>
> It also had an suexec, and I thought maybe that's the reason, but it
> wasn't.
>
> Also I changed the owner of the www directory because some mod_fcgid users
> had problems with the access rights.
>
We've just discovered a possible problem with how we parse the cookie from
the request, from another bug report. I'll push a fix to git soon.
Does the attached patch fix this for you?
Regards,
koen
diff --git a/src/web/WebController.C b/src/web/WebController.C
index 9c40527..a0004bc 100644
--- a/src/web/WebController.C
+++ b/src/web/WebController.C
@@ -260,8 +260,8 @@ std::string WebController::sessionFromCookie(const char
*cookies,
+ "})\"?.*");
boost::smatch what;
-
- if (boost::regex_match(std::string(cookies), what, cookieSession_e))
+ std::string cookiesAsStdString(cookies);
+ if (boost::regex_match(cookiesAsStdString, what, cookieSession_e))
return what[1];
else
return std::string();
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest