[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Thu Dec 14 22:17:28 UTC 2006
gordonp
Thu Dec 14 17:17:28 EST 2006
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data
In directory dev.open-bio.org:/tmp/cvs-serv16318/src/main/org/biomoby/shared/data
Modified Files:
MobyContentInstance.java
Log Message:
Made content more robust by escaping apostrohpes in simple parameter names
moby-live/Java/src/main/org/biomoby/shared/data MobyContentInstance.java,1.8,1.9
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyContentInstance.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyContentInstance.java 2006/12/11 18:58:58 1.8
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/data/MobyContentInstance.java 2006/12/14 22:17:28 1.9
@@ -185,7 +185,7 @@
debugPS = ps;
}
- protected void parseDataGroup(Element dataGroupTag) throws MobyException{
+ public void parseDataGroup(Element dataGroupTag) throws MobyException{
String groupID = null;
MobyDataJob job = new MobyDataJob();
@@ -439,7 +439,7 @@
if(dataObject instanceof MobyDataObject){
// This line should be replaced with a named field
- xml.append(" <Simple articleName='" + paramName + "'>"+
+ xml.append(" <Simple articleName='" + paramName.replaceAll("'","'") + "'>"+
dataObject.toXML()+
"</Simple>");
}
More information about the MOBY-guts
mailing list