Skip to content
Browse files

Merge pull request #2006 from jmarshallnz/escape_slashes

escape backslashes in ESCINFO[]. fixes #13855
  • Loading branch information...
2 parents 27781a9 + 181ab39 commit ffa3e48b4b38a669e78e52e58dc669bce9418d8b @MartijnKaijser MartijnKaijser committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/guilib/GUIInfoTypes.cpp
View
3 xbmc/guilib/GUIInfoTypes.cpp
@@ -356,8 +356,9 @@ CGUIInfoLabel::CInfoPortion::CInfoPortion(int info, const CStdString &prefix, co
CStdString CGUIInfoLabel::CInfoPortion::GetLabel(const CStdString &info) const
{
CStdString label = m_prefix + info + m_postfix;
- if (m_escaped) // escape all quotes, then quote
+ if (m_escaped) // escape all quotes and backslashes, then quote
{
+ label.Replace("\\", "\\\\");
label.Replace("\"", "\\\"");
return "\"" + label + "\"";
}

0 comments on commit ffa3e48

Please sign in to comment.
Something went wrong with that request. Please try again.