SECURITY: Better controls for logout interface buttons
[lhc/web/wiklou.git] / resources / src / mediawiki.page.ready / ready.js
index 48d605d..28374ce 100644 (file)
@@ -54,7 +54,7 @@ $( function () {
        } );
 
        // Turn logout to a POST action
-       $( '#pt-logout a' ).on( 'click', function ( e ) {
+       $( '#pt-logout a[data-mw="interface"]' ).on( 'click', function ( e ) {
                var api = new mw.Api(),
                        url = this.href;
                mw.notify(