mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-18 02:42:54 +09:00
bug #1258: Adds a endl character to any string before parsing
This commit is contained in:
1 parent
986e7966dd
commit
1d40fa3114
1 file changed
+5
-2
@@ -150,9 +150,12 @@ int Template::parse_str_or_xml(const string &parse_str, string& error_msg)
|
||||
}
|
||||
else
|
||||
{
|
||||
char * error_char = 0;
|
||||
char * error_char = 0;
|
||||
ostringstream oss;
|
||||
|
||||
rc = parse(parse_str, &error_char);
|
||||
oss << parse_str << endl;
|
||||
|
||||
rc = parse(oss.str(), &error_char);
|
||||
|
||||
if ( rc != 0 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user