diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-01-11 23:26:56 +0000 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-01-11 23:26:56 +0000 |
commit | f4aa5b7ac70c0df2dd8662af702241592aa0dc6c (patch) | |
tree | a3434fdfcfe89af17115b485f23014e5162dc5be /phpBB/includes | |
parent | e5c228d564b26ea39a499f3139590eaf39ef7d12 (diff) | |
download | forums-f4aa5b7ac70c0df2dd8662af702241592aa0dc6c.tar forums-f4aa5b7ac70c0df2dd8662af702241592aa0dc6c.tar.gz forums-f4aa5b7ac70c0df2dd8662af702241592aa0dc6c.tar.bz2 forums-f4aa5b7ac70c0df2dd8662af702241592aa0dc6c.tar.xz forums-f4aa5b7ac70c0df2dd8662af702241592aa0dc6c.zip |
Safe us some more calls to $db->sql_escape().
Authorised by: naderman :-P
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10399 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/search/fulltext_mysql.php | 4 | ||||
-rw-r--r-- | phpBB/includes/search/fulltext_native.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php index c72e674011..da3833754e 100644 --- a/phpBB/includes/search/fulltext_mysql.php +++ b/phpBB/includes/search/fulltext_mysql.php @@ -473,7 +473,7 @@ class fulltext_mysql extends search_backend while ($row = $db->sql_fetchrow($result)) { - $id_ary[] = $row[$field]; + $id_ary[] = (int) $row[$field]; } $db->sql_freeresult($result); @@ -650,7 +650,7 @@ class fulltext_mysql extends search_backend while ($row = $db->sql_fetchrow($result)) { - $id_ary[] = $row[$field]; + $id_ary[] = (int) $row[$field]; } $db->sql_freeresult($result); diff --git a/phpBB/includes/search/fulltext_native.php b/phpBB/includes/search/fulltext_native.php index e1ab02ba9d..c89e92711e 100644 --- a/phpBB/includes/search/fulltext_native.php +++ b/phpBB/includes/search/fulltext_native.php @@ -744,7 +744,7 @@ class fulltext_native extends search_backend while ($row = $db->sql_fetchrow($result)) { - $id_ary[] = $row[(($type == 'posts') ? 'post_id' : 'topic_id')]; + $id_ary[] = (int) $row[(($type == 'posts') ? 'post_id' : 'topic_id')]; } $db->sql_freeresult($result); @@ -986,7 +986,7 @@ class fulltext_native extends search_backend while ($row = $db->sql_fetchrow($result)) { - $id_ary[] = $row[$field]; + $id_ary[] = (int) $row[$field]; } $db->sql_freeresult($result); |