/[svn]/linuxsampler/trunk/src/network/lscpserver.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/network/lscpserver.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1399 by schoenebeck, Thu Oct 11 18:53:29 2007 UTC revision 1403 by iliev, Fri Oct 12 09:12:22 2007 UTC
# Line 58  static String _escapeLscpResponse(String Line 58  static String _escapeLscpResponse(String
58              !(c == '*') && !(c == '+') && !(c == ',') && !(c == '-') &&              !(c == '*') && !(c == '+') && !(c == ',') && !(c == '-') &&
59              !(c == '.') && !(c == '/') && !(c == ':') && !(c == ';') &&              !(c == '.') && !(c == '/') && !(c == ':') && !(c == ';') &&
60              !(c == '<') && !(c == '=') && !(c == '>') && !(c == '?') &&              !(c == '<') && !(c == '=') && !(c == '>') && !(c == '?') &&
61              !(c == '@') && !(c == '[') && !(c == '\\') && !(c == ']') &&              !(c == '@') && !(c == '[') && !(c == ']') &&
62              !(c == '^') && !(c == '_') && !(c == '`') && !(c == '{') &&              !(c == '^') && !(c == '_') && !(c == '`') && !(c == '{') &&
63              !(c == '|') && !(c == '}') && !(c == '~')              !(c == '|') && !(c == '}') && !(c == '~')
64          ) {          ) {
# Line 2416  String LSCPServer::GetDbInstrumentDirect Line 2416  String LSCPServer::GetDbInstrumentDirect
2416      try {      try {
2417          DbDirectory info = InstrumentsDb::GetInstrumentsDb()->GetDirectoryInfo(Dir);          DbDirectory info = InstrumentsDb::GetInstrumentsDb()->GetDirectoryInfo(Dir);
2418    
2419          result.Add("DESCRIPTION", InstrumentsDb::toEscapedText(info.Description));          result.Add("DESCRIPTION", _escapeLscpResponse(info.Description));
2420          result.Add("CREATED", info.Created);          result.Add("CREATED", info.Created);
2421          result.Add("MODIFIED", info.Modified);          result.Add("MODIFIED", info.Modified);
2422      } catch (Exception e) {      } catch (Exception e) {
# Line 2600  String LSCPServer::GetDbInstrumentInfo(S Line 2600  String LSCPServer::GetDbInstrumentInfo(S
2600          result.Add("SIZE", (int)info.Size);          result.Add("SIZE", (int)info.Size);
2601          result.Add("CREATED", info.Created);          result.Add("CREATED", info.Created);
2602          result.Add("MODIFIED", info.Modified);          result.Add("MODIFIED", info.Modified);
2603          result.Add("DESCRIPTION", InstrumentsDb::toEscapedText(info.Description));          result.Add("DESCRIPTION", _escapeLscpResponse(info.Description));
2604          result.Add("IS_DRUM", info.IsDrum);          result.Add("IS_DRUM", info.IsDrum);
2605          result.Add("PRODUCT", InstrumentsDb::toEscapedText(info.Product));          result.Add("PRODUCT", _escapeLscpResponse(info.Product));
2606          result.Add("ARTISTS", InstrumentsDb::toEscapedText(info.Artists));          result.Add("ARTISTS", _escapeLscpResponse(info.Artists));
2607          result.Add("KEYWORDS", InstrumentsDb::toEscapedText(info.Keywords));          result.Add("KEYWORDS", _escapeLscpResponse(info.Keywords));
2608      } catch (Exception e) {      } catch (Exception e) {
2609           result.Error(e);           result.Error(e);
2610      }      }

Legend:
Removed from v.1399  
changed lines
  Added in v.1403

  ViewVC Help
Powered by ViewVC