Ticket #9913: shellescape.diff

File shellescape.diff, 485 bytes (added by Doug Haber <doug@…>, 9 years ago)
  • mythtv/libs/libmythbase/util.cpp

    diff --git a/mythtv/libs/libmythbase/util.cpp b/mythtv/libs/libmythbase/util.cpp
    index c14c428..499ba7d 100644
    a b QString &ShellEscape(QString &string) 
    13291329    if (string.contains("\""))
    13301330        string = string.replace("\"", "\\\"");
    13311331
    1332     if (string.contains(" "))
     1332    if (string.contains(" ") || string.contains("'"))
    13331333    {
    13341334        string.prepend("\"");
    13351335        string.append("\"");