mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Ticket #269: Do not allow mutation of external connection record.
This commit is contained in:
@@ -72,19 +72,19 @@ public class MySQLConnectionRecord implements ConnectionRecord {
|
|||||||
*/
|
*/
|
||||||
public MySQLConnectionRecord(Date startDate, Date endDate,
|
public MySQLConnectionRecord(Date startDate, Date endDate,
|
||||||
String username) {
|
String username) {
|
||||||
this.startDate = startDate;
|
this.startDate = new Date(startDate.getTime());
|
||||||
this.endDate = endDate;
|
this.endDate = new Date(endDate.getTime());
|
||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Date getStartDate() {
|
public Date getStartDate() {
|
||||||
return startDate;
|
return new Date(startDate.getTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Date getEndDate() {
|
public Date getEndDate() {
|
||||||
return endDate;
|
return new Date(endDate.getTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user