added: std::wstring Request::subdomain
support for subdomains git-svn-id: svn://ttmath.org/publicrep/winix/trunk@828 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -153,7 +153,7 @@ void Notify::CreateItemLink(const Item & item, std::wstring & item_link, std::ws
|
||||
{
|
||||
dirs->MakePath(item.id, tmp_path);
|
||||
item_link = config->url_proto;
|
||||
item_link += config->base_url;
|
||||
item_link += config->base_url; // !! IMPROVE ME what about subdomains?
|
||||
item_link += tmp_path;
|
||||
dir_link = item_link;
|
||||
}
|
||||
@@ -161,7 +161,7 @@ void Notify::CreateItemLink(const Item & item, std::wstring & item_link, std::ws
|
||||
{
|
||||
dirs->MakePath(item.parent_id, tmp_path);
|
||||
item_link = config->url_proto;
|
||||
item_link += config->base_url;
|
||||
item_link += config->base_url; // !! IMPROVE ME what about subdomains?
|
||||
item_link += tmp_path;
|
||||
dir_link = item_link;
|
||||
item_link += item.url;
|
||||
@@ -175,7 +175,7 @@ void Notify::CreateActivateLink(const std::wstring & name, long code, std::wstri
|
||||
wchar_t buff[50];
|
||||
|
||||
link = config->url_proto;
|
||||
link += config->base_url;
|
||||
link += config->base_url;// !! IMPROVE ME what about subdomains?
|
||||
link += L"/pw/activate/login:";
|
||||
UrlEncode(name, link, false);
|
||||
link += L"/code:";
|
||||
@@ -188,7 +188,7 @@ void Notify::CreateResetPasswordLink(const std::wstring & name, long code, std::
|
||||
wchar_t buff[50];
|
||||
|
||||
link = config->url_proto;
|
||||
link += config->base_url;
|
||||
link += config->base_url;// !! IMPROVE ME what about subdomains?
|
||||
link += L"/pw/resetpassword/login:";
|
||||
UrlEncode(name, link, false);
|
||||
link += L"/code:";
|
||||
|
Reference in New Issue
Block a user