GUACAMOLE-422: Only send timezone if it's there.

This commit is contained in:
Virtually Nick
2019-03-25 21:52:46 -04:00
parent d194e0754f
commit d3e00abab7

View File

@@ -185,12 +185,15 @@ public class ConfiguredGuacamoleSocket implements GuacamoleSocket {
info.getImageMimetypes().toArray(new String[0]) info.getImageMimetypes().toArray(new String[0])
)); ));
// Send client timezone // Send client timezone, if available
writer.writeInstruction( String timezone = info.getTimezone();
new GuacamoleInstruction( if (timezone != null && !timezone.isEmpty()) {
"timezone", writer.writeInstruction(
info.getTimezone() new GuacamoleInstruction(
)); "timezone",
info.getTimezone()
));
}
// Send args // Send args
writer.writeInstruction(new GuacamoleInstruction("connect", arg_values)); writer.writeInstruction(new GuacamoleInstruction("connect", arg_values));