SPARK-1714 fix saving notes with & (patch by Alexander198961)

This commit is contained in:
wroot
2016-03-13 21:40:22 +02:00
parent 64e2472e30
commit fe2a0f970a

View File

@ -46,9 +46,18 @@ public class PrivateNotes implements PrivateData {
}
public void setNotes(String notes) {
this.notes = notes;
if(notes!=null)
{
this.notes=notes.replaceAll("&","&");
} else {
this.notes=notes;
}
}
public void setMyNotes(String notes) {
this.notes=notes;
}
/**
* Returns the root element name.
@ -146,6 +155,12 @@ public class PrivateNotes implements PrivateData {
Log.error(e);
}
if(notes.getNotes() != null )
{
String note=notes.getNotes().replaceAll("&","&");
notes.setMyNotes(note);
}
return notes;
}
}