Index: trunk/extensions/Translate/FFS.php |
— | — | @@ -977,7 +977,8 @@ |
978 | 978 | while ( preg_match( $regex, $message, $match ) ) { |
979 | 979 | $uniqkey = $this->placeholder(); |
980 | 980 | $placeholders[$uniqkey] = $match[0]; |
981 | | - $message = preg_replace( $regex, $uniqkey, $message ); |
| 981 | + $search = preg_quote( $match[0], '~' ); |
| 982 | + $message = preg_replace( "~$search~", $uniqkey, $message ); |
982 | 983 | } |
983 | 984 | |
984 | 985 | // Then replace (possible multiple) plural instances into placeholders. |