Fork me on GitHub
Subscribe 3

Ticket #1082 (fixed bug)

Custom title overrides "Banned"

  • Created: 2016-04-02 14:40:55
  • Reported by: chris98
  • Assigned to: quy
  • Milestone: 1.5.10
  • Component: code
  • Priority: normal

In the function get_title():

	// If the user has a custom title
	if ($user['title'] != '')
		$user_title = pun_htmlspecialchars($user['title']);
	// If the user is banned
	else if (in_array(utf8_strtolower($user['username']), $ban_list))
		$user_title = $lang_common['Banned'];

Is this behaviour wanted? Surely if the user is banned, then their custom title should not show?

History

Franz 2016-04-03 09:48:16

  • Milestone set to 1.5.10.

Agreed, thanks for the report

quy 2016-04-06 14:06:38

Commit 65444cf to fluxbb 1.5-next

#1082 Banned title takes precedence

Franz 2016-04-07 01:08:51

Commit 7ec11e4 to fluxbb 1.5-next

Merge pull request #202 from Quy/1082-banned-title

#1082 Banned title takes precedence

quy 2016-04-07 01:24:08

  • Owner set to quy.
  • Status changed from open to fixed.

Thanks Chris!

quy 2016-06-16 07:55:45

Commit 1329d54 to fluxbb master

#1082 Banned title takes precedence