dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Escape unescaped messages shown in action=info
[lhc/web/wiklou.git]
/
includes
/
Linker.php
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
7840868
..
3a039f6
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-1605,7
+1605,7
@@
class Linker {
* @return string HTML fragment
*/
public static function revComment( Revision $rev, $local = false, $isPublic = false ) {
* @return string HTML fragment
*/
public static function revComment( Revision $rev, $local = false, $isPublic = false ) {
- if ( $rev->get
RawComment(
) == "" ) {
+ if ( $rev->get
Comment( Revision::RAW
) == "" ) {
return "";
}
if ( $rev->isDeleted( Revision::DELETED_COMMENT ) && $isPublic ) {
return "";
}
if ( $rev->isDeleted( Revision::DELETED_COMMENT ) && $isPublic ) {
@@
-1870,7
+1870,7
@@
class Linker {
$editCount = 0;
$moreRevs = false;
foreach ( $res as $row ) {
$editCount = 0;
$moreRevs = false;
foreach ( $res as $row ) {
- if ( $rev->get
RawUserText(
) != $row->rev_user_text ) {
+ if ( $rev->get
UserText( Revision::RAW
) != $row->rev_user_text ) {
if ( $verify &&
( $row->rev_deleted & Revision::DELETED_TEXT
|| $row->rev_deleted & Revision::DELETED_USER
if ( $verify &&
( $row->rev_deleted & Revision::DELETED_TEXT
|| $row->rev_deleted & Revision::DELETED_USER
@@
-2043,14
+2043,14
@@
class Linker {
if ( $titleObj->quickUserCan( 'edit' ) ) {
$editLink = self::link(
$titleObj,
if ( $titleObj->quickUserCan( 'edit' ) ) {
$editLink = self::link(
$titleObj,
- wfMessage( 'editlink' )->
text
(),
+ wfMessage( 'editlink' )->
escaped
(),
array(),
array( 'action' => 'edit' )
);
} else {
$editLink = self::link(
$titleObj,
array(),
array( 'action' => 'edit' )
);
} else {
$editLink = self::link(
$titleObj,
- wfMessage( 'viewsourcelink' )->
text
(),
+ wfMessage( 'viewsourcelink' )->
escaped
(),
array(),
array( 'action' => 'edit' )
);
array(),
array( 'action' => 'edit' )
);