mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
some more fixes
git-svn-id: file:///svn/phpbb/trunk@7875 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -661,13 +661,15 @@ if (version_compare($current_version, '3.0.RC2', '<='))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$new_code = str_replace('&', '&', $code);
|
||||
$new_code = str_replace('<', '<', $new_code);
|
||||
$new_code = str_replace('>', '>', $new_code);
|
||||
$new_code = utf8_htmlspecialchars($new_code);
|
||||
|
||||
$sql = 'UPDATE ' . SMILIES_TABLE . '
|
||||
SET code = \'' . $db->sql_escape($new_code) . '\'
|
||||
WHERE smiley_id = ' . (int)$id;
|
||||
WHERE smiley_id = ' . (int) $id;
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
@@ -761,6 +763,10 @@ if (version_compare($current_version, '3.0.RC3', '<='))
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure empty smiley codes do not exist
|
||||
$sql = 'DELETE FROM ' . SMILIES_TABLE . "
|
||||
WHERE code = ''";
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
|
||||
_write_result($no_updates, $errored, $error_ary);
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
/**
|
||||
* @todo: check for those functions being 'available'? Though not able to check with function_exists, we need to create test cases
|
||||
* ini_get(), glob, getimagesize, fsockopen...
|
||||
* ini_get(), glob, getimagesize, fsockopen, readfile
|
||||
*/
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user