r100166 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100165‎ | r100166 | r100167 >
Date:21:47, 18 October 2011
Author:maxsem
Status:ok
Tags:
Comment:
remove leading & from POST
Modified paths:
  • /trunk/extensions/ApiSandbox/ext.apiSandbox.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ApiSandbox/ext.apiSandbox.js
@@ -242,6 +242,9 @@
243243 showLoading( $output );
244244 if ( mustBePosted ) {
245245 $requestUrl.val( url );
 246+ if ( params.length > 0 ) {
 247+ params = params.substr( 1 ); // remove leading &
 248+ }
246249 $requestPost.val( params );
247250 $postRow.show();
248251 } else {

Status & tagging log