Index: trunk/phase3/RELEASE-NOTES-1.18 |
— | — | @@ -476,6 +476,8 @@ |
477 | 477 | * (bug 31674) Can't edit watchlist if it contains special pages |
478 | 478 | * (bug 32100) Installer complains about Suhosin GET limit even if it is |
479 | 479 | already set above 1024 bytes |
| 480 | +* (bug 32086) Special:PermanentLink now show an error message when no subpage |
| 481 | + was specified. |
480 | 482 | |
481 | 483 | === API changes in 1.18 === |
482 | 484 | * BREAKING CHANGE: action=watch now requires POST and token. |
Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -1080,6 +1080,10 @@ |
1081 | 1081 | |
1082 | 1082 | function getRedirect( $subpage ) { |
1083 | 1083 | $subpage = intval( $subpage ); |
| 1084 | + if( $subpage === 0 ) { |
| 1085 | + # throw an error page when no subpage was given |
| 1086 | + throw new ErrorPageError( 'nopagetitle', 'nopagetext' ); |
| 1087 | + } |
1084 | 1088 | $this->mAddedRedirectParams['oldid'] = $subpage; |
1085 | 1089 | return true; |
1086 | 1090 | } |