From: Huji Date: Tue, 24 Feb 2009 18:41:10 +0000 (+0000) Subject: (bug 16899) DISPLAYTITLE should allow Arabic and Persian harakats X-Git-Tag: 1.31.0-rc.0~42699 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=08710fc1d13201f84f2966c205d8b2bb2663306e;p=lhc%2Fweb%2Fwiklou.git (bug 16899) DISPLAYTITLE should allow Arabic and Persian harakats --- 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;