diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-02-12 01:58:30 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-02-12 01:58:30 +0000 |
commit | b2f835dae3b65975886d1c18ab05815b5c29d437 (patch) | |
tree | c5ec10ebf398b2b1758cc1b4276209d706db8b2e /utils/std_string_utils.cpp | |
parent | 0f85b707f965963be9de6a30061c2329d50dcc0c (diff) |
Facebook: Improve login procedure (not finished) and fix getting login errors; version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@16275 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'utils/std_string_utils.cpp')
-rw-r--r-- | utils/std_string_utils.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/std_string_utils.cpp b/utils/std_string_utils.cpp index 35038977d9..a824ef87eb 100644 --- a/utils/std_string_utils.cpp +++ b/utils/std_string_utils.cpp @@ -428,12 +428,13 @@ std::string utils::text::source_get_value2(std::string* data, const char *term, return ret;
}
-std::string utils::text::source_get_form_data(std::string* data)
+std::string utils::text::source_get_form_data(std::string* data, boolean hiddenOnly)
{
+ const char *search = hiddenOnly ? "<input type=\"hidden\"" : "<input";
std::string values;
std::string::size_type start = 0;
- start = data->find("<input", start);
+ start = data->find(search, start);
while (start != std::string::npos) {
start++;
std::string attr, value;
@@ -461,7 +462,7 @@ std::string utils::text::source_get_form_data(std::string* data) values += "&";
values += attr + "=" + value;
}
- start = data->find("<input", start);
+ start = data->find(search, start);
}
return values;
|