Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mediawiki 1.24+ EscapeLocalURL #2

Open
danpeig opened this issue May 19, 2015 · 0 comments
Open

Mediawiki 1.24+ EscapeLocalURL #2

danpeig opened this issue May 19, 2015 · 0 comments

Comments

@danpeig
Copy link

danpeig commented May 19, 2015

In Mediawiki 1.24 and later, the EscapeLocalURL() was deprecated generating and error during the script execution. To avoid this problem, two replacements must be done in the code:

Line 272 and 273:
$url = $title->escapeLocalURL();
$this->form_action=$title->escapeLocalURL( 'action=submit' );

Should be replaced with:
$url = htmlspecialchars( $title->getLocalUrl());
$this->form_action=htmlspecialchars( $title->getLocalUrl('action=submit'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant