Last modified: 2010-05-15 15:33:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3364, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1364 - incorrect "clean up whitespace" regexps in Title:SecureAndSplit
incorrect "clean up whitespace" regexps in Title:SecureAndSplit
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.4.x
PC Windows Server 2003
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-01-19 17:19 UTC by ynot
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description ynot 2005-01-19 17:19:12 UTC
1.4 beta 5 bug:

$t = preg_replace( '/[\\s_]+/', '_', $this->mDbkeyform );
$t = trim( $t, '_' );

if we use utf8 in mediawiki, some urls corrupts and wiki shows the page about "incorrect title". For example, 
russian letter "P" in utf8 looks like \xD0\xA0. This code replaces А0 with underscore and deletes it, so we 
have corrupted utf8 string.

1.3.9 works well
$t = preg_replace( "/[ _]+/", "_", $this->mDbkeyform );
$t = preg_replace( '/^_*(.*?)_*$/', '$1', $t );
Comment 1 JeLuF 2005-01-23 16:32:22 UTC
fixed

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links