mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-15 15:55:54 +10:00
add encodeURIComponent for sqlBind ajax parameter
This commit is contained in:
@@ -329,10 +329,10 @@
|
||||
if ( $(e.target).hasClass("sql") ) {
|
||||
var item = dataView.getItem(args.row);
|
||||
var itemNext = dataView.getItem(args.row+1);
|
||||
var data = "sql=" + item.argument;
|
||||
var data = "sql=" + encodeURIComponent( item.argument );
|
||||
|
||||
if ( angular.isDefined( itemNext ) && itemNext.method === "SQL-BindValue" ) {
|
||||
data += "&bind=" + itemNext.argument;
|
||||
data += "&bind=" + encodeURIComponent( itemNext.argument );
|
||||
ajaxService.getSQLBind( "/sqlBind.pinpoint", data, function( result ) {
|
||||
$("#customLogPopup").find("h4").html("SQL").end().find("div.modal-body").html(
|
||||
'<button class="btn btn-default btn-xs sql" style="margin-left:2em">Copy</button>' +
|
||||
|
||||
Reference in New Issue
Block a user