mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1714 fix saving notes with & (patch by Alexander198961)
This commit is contained in:
@ -46,9 +46,18 @@ public class PrivateNotes implements PrivateData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setNotes(String notes) {
|
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.
|
* Returns the root element name.
|
||||||
@ -146,6 +155,12 @@ public class PrivateNotes implements PrivateData {
|
|||||||
Log.error(e);
|
Log.error(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(notes.getNotes() != null )
|
||||||
|
{
|
||||||
|
String note=notes.getNotes().replaceAll("&","&");
|
||||||
|
notes.setMyNotes(note);
|
||||||
|
}
|
||||||
|
|
||||||
return notes;
|
return notes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user