From: Trevor Parscal Date: Fri, 1 Oct 2010 18:11:07 +0000 (+0000) Subject: Improved on r73093 by allowing jQuery to properly escape some HTML attributes. X-Git-Tag: 1.31.0-rc.0~34710 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=76d4beb2cffcabaf0c160a9ad14a6ce51360e2ec;p=lhc%2Fweb%2Fwiklou.git Improved on r73093 by allowing jQuery to properly escape some HTML attributes. --- diff --git a/resources/mediawiki/mediawiki.js b/resources/mediawiki/mediawiki.js index fab4a53b51..465e147775 100644 --- a/resources/mediawiki/mediawiki.js +++ b/resources/mediawiki/mediawiki.js @@ -675,12 +675,12 @@ window.mediaWiki = new ( function( $ ) { if ( modules.substr( 0, 7 ) == 'http://' || modules.substr( 0, 8 ) == 'https://' ) { if ( type === 'text/css' ) { setTimeout( function() { - $( 'head' ).append( '' ); + $( 'head' ).append( '' ).attr( 'href', modules ); }, 0 ); return true; } else if ( type === 'text/javascript' || typeof type === 'undefined' ) { setTimeout( function() { - $( 'body' ).append( '' ); + $( 'body' ).append( '' ).attr( 'src', modules ) }, 0 ); return true; }