Page MenuHomePhabricator

Jomagrec (Jorge Grajales)
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Sunday

  • Clear sailing ahead.

User Details

User Since
Jan 15 2021, 9:04 PM (13 w, 6 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Jomagrec [ Global Accounts ]

Recent Activity

Jan 15 2021

Jomagrec added a comment to T269673: Error contacting the Parsoid/RESTBase server (HTTP 500) when saving page with accented character in title.

The following code seems to be fixing it.

E:\Websites\mediawiki-1.35.0>git diff extensions/VisualEditor/includes/VEParsoid/src/Rest/Handler/ParsoidHandler.php
warning: LF will be replaced by CRLF in extensions/VisualEditor/includes/VEParsoid/src/Rest/Handler/ParsoidHandler.php.
The file will have its original line endings in your working directory
diff --git a/extensions/VisualEditor/includes/VEParsoid/src/Rest/Handler/ParsoidHandler.php b/extensions/VisualEditor/includes/VEParsoid/src/Rest/Handler/ParsoidHandler.php
index 649a9aa3..e706aaa7 100644
--- a/extensions/VisualEditor/includes/VEParsoid/src/Rest/Handler/ParsoidHandler.php
+++ b/extensions/VisualEditor/includes/VEParsoid/src/Rest/Handler/ParsoidHandler.php
@@ -338,6 +338,8 @@ abstract class ParsoidHandler extends Handler {
                string $title, ?int $revision, string $wikitextOverride = null,
                string $pagelanguageOverride = null
        ): PageConfig {
+               $title = utf8_encode($title);
                $title = $title ? Title::newFromText( $title ) : Title::newMainPage();
                if ( !$title ) {
                        // TODO use proper validation
Jan 15 2021, 9:06 PM · Editing-team (Third-party), VisualEditor