[Ils-source] r1301 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Mon Feb 23 10:11:34 MST 2015
Author: scribe
Date: 2015-02-23 10:11:34 -0700 (Mon, 23 Feb 2015)
New Revision: 1301
Modified:
trunk/webapp/SQL.jsp
Log:
fixed parameter expansion bug
Modified: trunk/webapp/SQL.jsp
===================================================================
--- trunk/webapp/SQL.jsp 2015-01-23 19:47:02 UTC (rev 1300)
+++ trunk/webapp/SQL.jsp 2015-02-23 17:11:34 UTC (rev 1301)
@@ -837,7 +837,7 @@
Object o = rs.getObject(i + 1);
String colVal = (o != null) ? o.toString() : "";
fields.add(colVal.replaceAll("\'", "\'\'"));
- colVal = URLEncoder.encode(colVal, "UTF-8");
+// colVal = URLEncoder.encode(colVal, "UTF-8");
}
String insertSQL = iSQL.trim();
int loopStart = -1;
@@ -878,7 +878,7 @@
if (execute) {
String rSQL = specialFunctions(insertSQL, fields.toArray());
MessageFormat format = new MessageFormat(rSQL);
- rSQL = format.format(fields.toArray());
+ rSQL = format.format(fields);
runSQL(rSQL, null, 0, 0, errOut, outputLevel, ignoreException);
}
}
More information about the Ils-source
mailing list