Browse Source

Fixed incorrect ownership semantics on URL caused a crash under non-cow strings.

master
Artyom Beilis 14 years ago
parent
commit
45615e3578
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      config.js
  2. +1
    -1
      url_dispatcher.cpp

+ 1
- 1
config.js View File

@@ -81,7 +81,7 @@
"default_skin" : "skin1",
"paths" : [ "./" ],
//"skins" : [ "skin3" ],
"auto_reload" : true
//"auto_reload" : true
},
"cache" : {
"backend" : "thread_shared",


+ 1
- 1
url_dispatcher.cpp View File

@@ -23,7 +23,7 @@ namespace cppcms {
{
}

bool matches(std::string path)
bool matches(std::string const &path)
{
return boost::regex_match(path.c_str(),match_,expr_);
}


Loading…
Cancel
Save