Changeset 674:d1bdc687d194 in qutecom-2.2 for qutecom/src/presentation/qt/chat/QtChatHistoryWidget.cpp
Legend:
- Unmodified
- Added
- Removed
-
qutecom/src/presentation/qt/chat/QtChatHistoryWidget.cpp
r666 r674 142 142 { 143 143 QString text = message; 144 text = text.replace( "\"","\\\"");145 text = text.replace( "\'","\\\'");144 text = text.replace('\"',"\\\""); 145 text = text.replace('\'',"\\\'"); 146 146 147 147 Config & config = ConfigManager::getInstance().getCurrentConfig(); … … 169 169 { 170 170 QString footer = _theme->getFooter(); 171 footer = footer.replace( "\n","");172 footer = footer.replace( "\r","");173 footer = footer.replace( "\t","");174 footer = footer.replace( "\"","\\\"");175 footer = footer.replace( "\'","\\\'");171 footer = footer.replace('\n',""); 172 footer = footer.replace('\r',""); 173 footer = footer.replace('\t',""); 174 footer = footer.replace('\"',"\\\""); 175 footer = footer.replace('\'',"\\\'"); 176 176 page ()->currentFrame ()->evaluateJavaScript("insertMessage(\"\")"); 177 177 page ()->currentFrame ()->evaluateJavaScript("insertMessage(\""+footer+"\")"); … … 211 211 //updateHtml(); 212 212 213 html = html.replace( "\n","");214 html = html.replace( "\r","");215 html = html.replace( "\t","");216 html = html.replace( "\"","\\\"");217 html = html.replace( "\'","\\\'");213 html = html.replace('\n',""); 214 html = html.replace('\r',""); 215 html = html.replace('\t',""); 216 html = html.replace('\"',"\\\""); 217 html = html.replace('\'',"\\\'"); 218 218 219 219 if(position == QtChatTheme::First) … … 256 256 QtChatTheme::setKeywordValue(html, "time", time.toString("HH:mm")); 257 257 258 html = html.replace( "\n","");259 html = html.replace( "\r","");260 html = html.replace( "\t","");261 html = html.replace( "\"","\\\"");262 html = html.replace( "\'","\\\'");258 html = html.replace('\n',""); 259 html = html.replace('\r',""); 260 html = html.replace('\t',""); 261 html = html.replace('\"',"\\\""); 262 html = html.replace('\'',"\\\'"); 263 263 page ()->currentFrame ()->evaluateJavaScript("insertMessage(\"\")"); 264 264 page ()->currentFrame ()->evaluateJavaScript("insertMessage(\""+html+"\")");
Note: See TracChangeset
for help on using the changeset viewer.
