MyBB Community Forums

Full Version: Strange filtering in option "text"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there,

I was working on a plugin and I've to had a port number, potentially with ssl support (it's for IRC). So, I decided to use the conventional + sign as prefix, but I found a really strange filtering.
My setting definition is:
$settings[] = array(
	'name' => CN_ABPLIM.'_port',
	'title' => $lang->lightirc_porttitle,
	'description' => $lang->lightirc_portdesc,
	'optionscode' => 'text',
	'value' => '6667',
	'disporder' => 3,
	'gid' => $gid,
);

If I enter +6667 and come back to the settings, I see 6667.
If I enter 66+67 and come back, I've 66+67.

I didn't look at source code yet, but seems weird. Or did I do a mistake ?
Yet another issue caused by this: https://github.com/mybb/mybb/issues/1933
Thanks for the info.