Package: phpmyadmin Version: 4:4.2.12-2+deb8u1 Severity: normal Tags: patch upstream
Dear Maintainer, This bug (which is fixed upstream[1]) has wasted some time ofr me, maybe it could be fixed in the next stable update. Thanks, Alexandre [1] https://github.com/phpmyadmin/phpmyadmin/issues/11812 *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? * What exactly did you do (or not do) that was effective (or ineffective)? * What was the outcome of this action? * What outcome did you expect instead? *** End of the template - remove these template lines *** -- System Information: Debian Release: 8.4 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -Nru phpmyadmin-4.2.12.old/js/cross_framing_protection.js phpmyadmin-4.2.12/js/cross_framing_protection.js --- phpmyadmin-4.2.12.old/js/cross_framing_protection.js 2014-11-20 16:41:00.000000000 +0100 +++ phpmyadmin-4.2.12/js/cross_framing_protection.js 2016-05-09 12:23:51.764267622 +0200 @@ -4,7 +4,11 @@ */ if (self == top) { var style_element = document.getElementById("cfs-style"); - style_element.parentNode.removeChild(style_element); + // check if style_element has already been removed + // to avoid frequently reported js error + if (typeof(style_element) != 'undefined' && style_element != null) { + style_element.parentNode.removeChild(style_element); + } } else { top.location = self.location; }