Menu

#3 sql.jsp not decoding sql querystring

open
nobody
None
5
2003-04-25
2003-04-25
No

This results in the MySQL server being unable to parse
the query. Easily fixed - in sql.jsp, replace the code with
the following:

String sql_query= (var.existKey("sql_query"))
? URLDecoder.decode
(jspMyAdminUtil.stripSlashes((String)var.get
((Object)"sql_query")))
"";
String sql_order= (var.existKey("sql_order"))
? URLDecoder.decode
(jspMyAdminUtil.stripSlashes((String)var.get
((Object)"sql_order")))
"";

This will decode the querystring resulting in the sql
functioning correctly. Applies to 0.6

Discussion


Log in to post a comment.

MongoDB Logo MongoDB