r60198 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r60197
|
r60198
|
r60199
>
Date:
02:49, 18 December 2009
Author:
tstarling
Status:
deferred
Tags:
Comment:
Fix breakage of LinkFilter::makeLike() due to attempted rewrite in
r60162
. It's meant to return the string without the quotes, not the whole clause.
Modified paths:
/trunk/phase3/includes/LinkFilter.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/LinkFilter.php
—
—
@@ -59,8 +59,13 @@
60
60
return false;
61
61
}
62
62
$dbw = wfGetDB( DB_MASTER );
63
-
64
- return $dbw->buildLike( $like );
63
+ $s = $dbw->buildLike( $like );
64
+ $m = false;
65
+ if ( preg_match( "/^ *LIKE '(.*)' *$/", $s, $m ) ) {
66
+ return $m[1];
67
+ } else {
68
+ throw new MWException( __METHOD__.': this DBMS is not supported by this function.' );
69
+ }
65
70
}
66
71
67
72
/**
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r60162
Fixup for
r57989
: removed artifacts of the previous version of my patch, impr...
maxsem
15:39, 17 December 2009
Status & tagging log
06:27, 12 January 2010
Tim Starling
(
talk
|
contribs
)
changed the
status
of r60198
[
removed:
new
added:
deferred]