Index: trunk/extensions/Storyboard/specials/StorySubmission/StorySubmission_body.php |
— | — | @@ -82,12 +82,16 @@ |
83 | 83 | } else { |
84 | 84 | $wgOut->setPageTitle( wfMsg( 'storyboard-submissionincomplete' ) ); |
85 | 85 | |
86 | | - $wgOut->addWikiMsg( 'storyboard-alreadyexists', $title, $wgTitle->getFullURL() ); |
| 86 | + $wgOut->addWikiMsg( 'storyboard-alreadyexists', $title,$wgTitle->getFullURL() ); |
87 | 87 | |
88 | 88 | // Let's not give a null link to people with no JS. |
89 | 89 | // TODO: change this to the last page somehow |
90 | | - $fallBackUrl = Title::newMainPage()->getFullURL(); |
91 | | - $wgOut->addHtml( "<a href='$fallBackUrl' onclick='history.go(-1); return false;'>" . wfMsg( 'storyboard-changetitle' ) . '</a>' ); |
| 90 | + htmlspecialchars( $fallBackUrl = Title::newMainPage()->getFullURL() ); |
| 91 | + $wgOut->addHtml( |
| 92 | + "<a href=\"$fallBackUrl\" onclick='history.go(-1); return false;'>" . |
| 93 | + htmlspecialchars( wfMsg( 'storyboard-changetitle' ) ) . |
| 94 | + '</a>' |
| 95 | + ); |
92 | 96 | } |
93 | 97 | } |
94 | 98 | |