From: Brion Vibber Date: Wed, 26 Nov 2003 08:28:27 +0000 (+0000) Subject: Escape removal of brokenlinks X-Git-Tag: 1.1.0~78 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=d1853438f55de220dae3c9cf769490fbcedab18b;p=lhc%2Fweb%2Fwiklou.git Escape removal of brokenlinks --- diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index 360680fc45..8106e58089 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -80,7 +80,7 @@ class LinksUpdate { # Delete where necessary if ( count( $del ) ) { $sql = "DELETE FROM brokenlinks WHERE bl_from={$this->mId} AND bl_to IN('" . - implode( "','", $del ) . "')"; + implode( "','", array_map( "wfStrencode", $del ) ) . "')"; wfQuery( $sql, DB_WRITE, $fname ); } } else {