Fixed Media GALLERY bbcode broken if space not added

Sim

Well-known member
Affected version
2.x
I know this is rarely typed by hand, but I noticed an inconsistency between v1.5 and v2.x for the GALLERY bbcode where forgetting to add a space between the comma and the media ID will break the gallery display.

For example:

[GALLERY=media,2175][/GALLERY]

... does not render:


... while:

[GALLERY=media, 2175][/GALLERY]

... renders correctly:


In v1.5 it didn't matter whether there was a space between the comma and media id or not - so if people have added the gallery bbcode in v1.5 without a space, it will be broken in v2.x
 
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.1).

Change log:
Make the space in the GALLERY bb code option optional.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom