Index: trunk/extensions/Translate/js/quickedit.js |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | |
49 | 49 | function trlOpenJsEdit( page, group ) { |
50 | 50 | var url = wgScript + "?title=Special:Translate/editpage&suggestions=async&page=$1&loadgroup=$2"; |
51 | | - url = url.replace( "$1", page ).replace( "$2", group ); |
| 51 | + url = url.replace( "$1", encodeURIComponent( page ) ).replace( "$2", encodeURIComponent( group ) ); |
52 | 52 | var id = "jsedit" + page.replace( /[^a-zA-Z0-9_]/g, '_' ); |
53 | 53 | |
54 | 54 | var dialog = jQuery("#"+id); |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | if ( form.find( ".mw-translate-messagechecks" ) ) { |
91 | 91 | var checker = new MessageCheckUpdater( function() { |
92 | 92 | var url = wgScript + "?title=Special:Translate/editpage&suggestions=checks&page=$1&loadgroup=$2"; |
93 | | - url = url.replace( "$1", page ).replace( "$2", group ); |
| 93 | + url = url.replace( "$1", encodeURIComponent( page ) ).replace( "$2", encodeURIComponent( group ) ); |
94 | 94 | jQuery.post( url, { translation: textarea.val() } , function(mydata) { |
95 | 95 | form.find( ".mw-translate-messagechecks" ).replaceWith( mydata ); |
96 | 96 | }); |