dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c38773
)
General fix for trailing whitespace in messages, so that we don't have to put bugfix...
author
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 4 Jun 2009 07:26:46 +0000
(07:26 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 4 Jun 2009 07:26:46 +0000
(07:26 +0000)
includes/MessageCache.php
patch
|
blob
|
history
diff --git
a/includes/MessageCache.php
b/includes/MessageCache.php
index
7f5d95d
..
b831f33
100644
(file)
--- a/
includes/MessageCache.php
+++ b/
includes/MessageCache.php
@@
-575,6
+575,16
@@
class MessageCache {
if( $message === false ) {
return '<' . htmlspecialchars($key) . '>';
}
+
+ # Fix whitespace
+ $message = strtr( $message,
+ array(
+ # Fix for trailing whitespace, removed by textarea
+ ' ' => ' ',
+ # Fix for NBSP, converted to space by firefox
+ ' ' => "\xc2\xa0",
+ ) );
+
return $message;
}