3d79b89141253b72477ac9276f8acfc125efc7c6 max Thu Apr 20 02:54:47 2023 -0700 #Preview2 week - bugs introduced now will need a build patch to fix small tweaks to dumpToLog feature, refs #30591 diff --git src/hg/js/utils.js src/hg/js/utils.js index 54fc07c..85cf92e 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -3712,20 +3712,20 @@ let temp; temp = url.split("?"); if (temp.length > 1) queryString = temp.slice(1).join("?"); temp = temp[0].split("/"); protocol = temp[0]; // "https:" serverName = temp[2]; // "genome-test.gi.ucsc.edu" pathInfo = temp.slice(3).join("/"); // "cgi-bin/hgTracks" return {protocol: protocol, serverName: serverName, pathInfo: pathInfo, queryString: queryString}; } function writeToApacheLog(msg) { // send msg to web servers error_log // first need to figure out what server and CGI we are requesting: let currUrl = parseUrl(window.location.href); - logUrl = currUrl.protocol + "//" + currUrl.serverName + "/" + currUrl.pathInfo + "?_dumpToLog=" + msg; + logUrl = currUrl.protocol + "//" + currUrl.serverName + "/" + currUrl.pathInfo + "?_dumpToLog=" + encodeURIComponent(msg); let xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", logUrl, true); xmlhttp.send(); // sends request and exits this function }