diff --git a/ChangeLog b/ChangeLog index 271d6d3c54..97e7b0340c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -56,6 +56,7 @@ phpMyAdmin - ChangeLog - issue #11924 Remove caching of server information - issue #11628 Proper parsing of INSERT ... ON DUPLICATE KEY queries - issue #12545 Proper parsing of CREATE TABLE ... PARTITION queries +- issue #12473 Code can throw unhandled exception 4.6.4 (2016-08-16) - issue [security] Weaknesses with cookie encryption, see PMASA-2016-29 diff --git a/js/functions.js b/js/functions.js index bfcff2d345..6cef74cc36 100644 --- a/js/functions.js +++ b/js/functions.js @@ -613,8 +613,12 @@ function confirmLink(theLink, theSqlQuery) if (is_confirmed) { if ($(theLink).hasClass('formLinkSubmit')) { var name = 'is_js_confirmed'; + if ($(theLink).attr('href').indexOf('usesubform') != -1) { - name = 'subform[' + $(theLink).attr('href').substr('#').match(/usesubform\[(\d+)\]/i)[1] + '][is_js_confirmed]'; + var matches = $(theLink).attr('href').substr('#').match(/usesubform\[(\d+)\]/i); + if (matches != null) { + name = 'subform[' + matches[1] + '][is_js_confirmed]'; + } } $(theLink).parents('form').append('');