X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=blobdiff_plain;ds=sidebyside;f=resources%2Fmediawiki%2Fmediawiki.Uri.js;h=556631285983849d7470464cd398039900acbc12;hb=96995b3d8cecd9b3fa6ecb62912fb2c8cb20903b;hp=a1eed48d82b2176c3f1df94d3d135f99b5846624;hpb=98ec2eb3a2011ce04d3c1e6cf8e81c8f1b6c15c0;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/mediawiki/mediawiki.Uri.js b/resources/mediawiki/mediawiki.Uri.js index a1eed48d82..5566312859 100644 --- a/resources/mediawiki/mediawiki.Uri.js +++ b/resources/mediawiki/mediawiki.Uri.js @@ -1,5 +1,5 @@ /** - * Library for simple URI parsing and manipulation. Dependencies: mw, jQuery. + * Library for simple URI parsing and manipulation. * * Intended to be minimal, but featureful; do not expect full RFC 3986 compliance. The use cases we * have in mind are constructing 'next page' or 'previous page' URLs, detecting whether we need to @@ -44,8 +44,8 @@ * (N.b., 'password' is technically not allowed for HTTP URIs, but it is possible with other kinds * of URIs.) * - * Parsing based on parseUri 1.2.2 (c) Steven Levithan , MIT License. - * http://stevenlevithan.com/demo/parseuri/js/ + * Parsing based on parseUri 1.2.2 (c) Steven Levithan , MIT License. + * * * @class mw.Uri */ @@ -222,8 +222,8 @@ */ Uri.encode = function ( s ) { return encodeURIComponent( s ) - .replace( /!/g, '%21').replace( /'/g, '%27').replace( /\(/g, '%28') - .replace( /\)/g, '%29').replace( /\*/g, '%2A') + .replace( /!/g, '%21' ).replace( /'/g, '%27' ).replace( /\(/g, '%28' ) + .replace( /\)/g, '%29' ).replace( /\*/g, '%2A' ) .replace( /%20/g, '+' ); };