Permalink
Browse files

escape backslashes in ESCINFO[]. fixes #13855

  • Loading branch information...
1 parent 8e45737 commit 181ab39755dccfe25533b2286747978b5b4cc10a Jonathan Marshall committed Dec 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 181ab39

Please sign in to comment.