(this should really be tagged as 7.x-2.x-dev)

In the forum I'm migrating to Drupal, some closing bbcode tags are in the following format:

[/tag:[some alpha character]:uid] - for example: [/list:u:2xzga9j6]

I'll be submitting a patch that modifies the regex to handle and strip the extra chars.

Comments

acrollet’s picture

Status: Active » Needs review
StatusFileSize
new676 bytes

patch attached.

darksnow’s picture

Looks good.

I've used this same pattern in three different places so I've replaced them all with a call to a new helper function which uses this regex. I'm in the middle of changing media handling, which in part parses content text, so I'll test the lot together before I commit.

Cheers.

JeremyFrench’s picture

Looks like this was implemented in the stripUid function

JeremyFrench’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.