summaryrefslogtreecommitdiff
path: root/project2/cgi
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-07-19 23:55:08 +0000
committerrandomdan <randomdan@localhost>2011-07-19 23:55:08 +0000
commit884bb7c285c29cd640bf77423bdebd28bc8468b3 (patch)
treee575c9fdaf4704dbd75c8a434e51bd5b54147da5 /project2/cgi
parentSupport queuing multiple XSL row URLs and then fetching them all at once (diff)
downloadproject2-884bb7c285c29cd640bf77423bdebd28bc8468b3.tar.bz2
project2-884bb7c285c29cd640bf77423bdebd28bc8468b3.tar.xz
project2-884bb7c285c29cd640bf77423bdebd28bc8468b3.zip
Push defined columns stuff into its own class, used from streamRows
Also use it in new class regexRows for filtering and splitting rows by regex Move all code over to using Glib regexes now they're in Glibmm, as they work properly with UTF8 strings
Diffstat (limited to 'project2/cgi')
-rw-r--r--project2/cgi/cgiAppEngine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/project2/cgi/cgiAppEngine.cpp b/project2/cgi/cgiAppEngine.cpp
index f4eb134..ee19331 100644
--- a/project2/cgi/cgiAppEngine.cpp
+++ b/project2/cgi/cgiAppEngine.cpp
@@ -5,11 +5,11 @@
#include "../iterate.h"
#include "../logger.h"
#include <boost/bind.hpp>
-#include <boost/regex.hpp>
#include <boost/foreach.hpp>
#include "../sessionXml.h"
#include "../ostreamWrapper.h"
#include <boost/date_time/microsec_time_clock.hpp>
+#include <glibmm/regex.h>
const std::string SESSIONID = "sessionID";
typedef UUID SIDKey;
@@ -182,8 +182,8 @@ CgiApplicationEngine::session() const
bool
CgiApplicationEngine::checkDomain(const DomainPlatforms::value_type & i) const
{
- const std::string & h = _env->getServerName();
- return boost::regex_match(h.begin(), h.end(), boost::regex(i.first.raw()));
+ Glib::RefPtr<Glib::Regex> reg = Glib::Regex::create(i.first, Glib::REGEX_CASELESS | Glib::REGEX_DOTALL);
+ return reg->match(_env->getServerName());
}
Glib::ustring