1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Bug #1698: Fix bug in Template::trim

This commit is contained in:
Carlos Martín 2013-01-16 14:51:53 +01:00
parent 004dbf6d84
commit 3bfae38f5a

View File

@ -569,7 +569,7 @@ bool Template::trim(const string& name)
return false;
}
replace("NAME", st.substr( 0, st.find_last_not_of(" \f\n\r\t\v") + 1 ) );
replace(name, st.substr( 0, st.find_last_not_of(" \f\n\r\t\v") + 1 ) );
return true;
}