Skip to content
This repository
Browse code

Merge pull request #2006 from jmarshallnz/escape_slashes

escape backslashes in ESCINFO[]. fixes #13855
  • Loading branch information...
commit ffa3e48b4b38a669e78e52e58dc669bce9418d8b 2 parents 27781a9 + 181ab39
Martijn Kaijser authored December 31, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  xbmc/guilib/GUIInfoTypes.cpp
3  xbmc/guilib/GUIInfoTypes.cpp
@@ -356,8 +356,9 @@ CGUIInfoLabel::CInfoPortion::CInfoPortion(int info, const CStdString &prefix, co
356 356
 CStdString CGUIInfoLabel::CInfoPortion::GetLabel(const CStdString &info) const
357 357
 {
358 358
   CStdString label = m_prefix + info + m_postfix;
359  
-  if (m_escaped) // escape all quotes, then quote
  359
+  if (m_escaped) // escape all quotes and backslashes, then quote
360 360
   {
  361
+    label.Replace("\\", "\\\\");
361 362
     label.Replace("\"", "\\\"");
362 363
     return "\"" + label + "\"";
363 364
   }

0 notes on commit ffa3e48

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