mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/13914] Cast to INT mixed style ID data in user setup
PHPBB3-13914
This commit is contained in:
parent
0a089c8656
commit
e5f88a1462
1 changed files with 4 additions and 4 deletions
|
@ -262,8 +262,8 @@ class user extends \phpbb\session
|
|||
}
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . STYLES_TABLE . " s
|
||||
WHERE s.style_id = $style_id";
|
||||
FROM ' . STYLES_TABLE . '
|
||||
WHERE style_id = ' . (int) $style_id;
|
||||
$result = $db->sql_query($sql, 3600);
|
||||
$this->style = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
@ -274,8 +274,8 @@ class user extends \phpbb\session
|
|||
$style_id = $this->data['user_style'];
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . STYLES_TABLE . " s
|
||||
WHERE s.style_id = $style_id";
|
||||
FROM ' . STYLES_TABLE . '
|
||||
WHERE style_id = ' . (int) $style_id;
|
||||
$result = $db->sql_query($sql, 3600);
|
||||
$this->style = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
|
Loading…
Add table
Reference in a new issue