Skip to content

Commit

Permalink
Fix #44: Submitting any Special Page Web form in MW 1.27 would submit…
Browse files Browse the repository at this point in the history
… to nonexistent page
  • Loading branch information
samuell committed Jul 31, 2017
1 parent c7d7da2 commit 6a5dfed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion specials/SpecialRDFIOAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function execute( $par ) {
$this->infoMsg( 'Store is <b>not</b> set up' );
$setupStoreForm = '
<form method="get"
action="' . $wgServer . $wgScriptPath . '/index.php/Special:RDFIOAdmin"
action=""
name="createEditQuery">
<input
type="submit"
Expand Down
2 changes: 1 addition & 1 deletion specials/SpecialRDFImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function showDataFields() {
document.getElementById("datafields").style.display = "";
}
</script>
<form method="post" action="' . str_replace( '/$1', '', $requestData->articlePath ) . '/Special:RDFImport"
<form method="post" action=""
name="createEditQuery"><input type="hidden" name="action" value="import">
' . $extraFormContent . '
<table border="0">
Expand Down
2 changes: 1 addition & 1 deletion specials/SpecialSPARQLEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ private function getHTMLForm( $query = '' ) {
$selOutputHTML = ' selected="selected" ';
}

$htmlForm = '<form method="post" action="' . str_replace( '/$1', '', $wgArticlePath ) . '/Special:SPARQLEndpoint"
$htmlForm = '<form method="post" action=""
name="createEditQuery">
<div style="font-size: 10px">
<table border="0"><tbody>
Expand Down
2 changes: 1 addition & 1 deletion specials/SpecialSPARQLImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected function getHTMLForm( $buttonText, $limit, $offset ) {
$extSparqlUrl = $wRequest->getText( 'extsparqlurl', '' );

$htmlForm = '
<form method="get" action="' . $thisPageUrl . '" style="clear: none;">
<form method="get" action="" style="clear: none;">
URL of SPARQL endpoint:<br>
<input type="hidden" name="action" value="import">
<div id="urlfields">
Expand Down

0 comments on commit 6a5dfed

Please sign in to comment.