From 08710fc1d13201f84f2966c205d8b2bb2663306e Mon Sep 17 00:00:00 2001 From: Huji Date: Tue, 24 Feb 2009 18:41:10 +0000 Subject: [PATCH] (bug 16899) DISPLAYTITLE should allow Arabic and Persian harakats --- RELEASE-NOTES | 1 + includes/Title.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2f95a435d8..3baf7877f2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -221,6 +221,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 17621) Special:WantedFiles has no link to Special:Whatlinkshere * (bug 17460) Client ecoding is now correctly set for PostgreSQL * (bug 17648) Prevent floats from intruding into edit area in previews if no toolbar present +* (bug 16899) DISPLAYTITLE should allow Arabic and Persian harakats == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/Title.php b/includes/Title.php index 888c47a4a0..c5d1e385cf 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2197,6 +2197,9 @@ class Title { # $dbkey = preg_replace( '/[ _]+/', '_', $dbkey ); $dbkey = trim( $dbkey, '_' ); + + # Clean up Arabic harakats (bug 16899) + $dbkey = preg_replace( '/[\x{064B}-\x{0652}]/Su', '', $dbkey ); if ( '' == $dbkey ) { return false; -- 2.20.1