In that XML file, replace
PHP Code:
if ($vbulletin->GPC['wog_prefixadd'])
{
$db->query_write("
UPDATE `" . TABLE_PREFIX . "post` AS `post`
SET `post`.`title` = '" . $vbulletin->options['wog_captit_prefix'] . $vbulletin->GPC['title'] . "'
WHERE `post`.`threadid` = '" . $threadinfo['threadid'] . "'
AND `post`.`postid` != '" . $threadinfo['firstpostid'] . "'
");
}
else
{
$db->query_write("
UPDATE `" . TABLE_PREFIX . "post` AS `post`
SET `post`.`title` = '" . $vbulletin->GPC['title'] . "'
WHERE `post`.`threadid` = '" . $threadinfo['threadid'] . "'
");
}
with
PHP Code:
if ($vbulletin->GPC['wog_prefixadd'])
{
$db->query_write("
UPDATE `" . TABLE_PREFIX . "post` AS `post`
SET `post`.`title` = '" . $vbulletin->db->escape_string($vbulletin->options['wog_captit_prefix'] . $vbulletin->GPC['title']) . "'
WHERE `post`.`threadid` = '" . $threadinfo['threadid'] . "'
AND `post`.`postid` != '" . $threadinfo['firstpostid'] . "'
");
}
else
{
$db->query_write("
UPDATE `" . TABLE_PREFIX . "post` AS `post`
SET `post`.`title` = '" . $vbulletin->db->escape_string($vbulletin->GPC['title']) . "'
WHERE `post`.`threadid` = '" . $threadinfo['threadid'] . "'
");
}