diff options
author | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2015-07-10 19:53:36 +0300 |
---|---|---|
committer | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2015-07-10 19:53:36 +0300 |
commit | c3a81a6fd74dd003ec4f7f916e6d315c1195aaf8 (patch) | |
tree | d5bd1d719a6eaa111da3e4eaee20c77c0fac639e /js/error_report.js | |
parent | 30311537466ca57b5b2576c2adc7f5dc28a6fc33 (diff) |
Stop sending microhistory url and param data as part of error reports
Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>
Diffstat (limited to 'js/error_report.js')
-rw-r--r-- | js/error_report.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/js/error_report.js b/js/error_report.js index ce8036d593..610eeff6fd 100644 --- a/js/error_report.js +++ b/js/error_report.js @@ -188,37 +188,6 @@ var ErrorReport = { ErrorReport._showReportDialog(ErrorReport._last_exception); }, /** - * Returns the needed info about stored microhistory - * - * @return object - */ - _get_microhistory: function () { - if (! (history && history.pushState)) { - var cached_pages = PMA_MicroHistory.pages.slice(-7); - var remove = ["common_query", "table", "db", "token", "pma_absolute_uri"]; - return { - pages: cached_pages.map(function (page) { - var simplepage = { - hash: page.hash - }; - - if (page.params) { - simplepage.params = $.extend({}, page.params); - $.each(simplepage.params, function (param) { - if ($.inArray(param, remove) != -1) { - delete simplepage.params[param]; - } - }); - } - - return simplepage; - }), - current_index: PMA_MicroHistory.current - - (PMA_MicroHistory.pages.length - cached_pages.length) - }; - } - }, - /** * Redirects to the settings page containing error report * preferences * @@ -240,7 +209,6 @@ var ErrorReport = { "token": PMA_commonParams.get('token'), "exception": exception, "current_url": window.location.href, - "microhistory": ErrorReport._get_microhistory(), "exception_type": 'js' }; if (AJAX.scriptHandler._scripts.length > 0) { |