Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2006 from jmarshallnz/escape_slashes

escape backslashes in ESCINFO[]. fixes #13855
  • Loading branch information...
commit ffa3e48b4b38a669e78e52e58dc669bce9418d8b 2 parents 27781a9 + 181ab39
@MartijnKaijser MartijnKaijser authored
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 + "\"";
}
Please sign in to comment.
Something went wrong with that request. Please try again.