Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Incorret RegExp for bold on plugins/BBCode/plugin.php #65

Closed
prsolucoes opened this Issue · 1 comment

3 participants

@prsolucoes

I think that bold regexp is wrong, because you use the character "|" instead of "/" in first regexp character, look:

// Bold: [b]bold text[/b]
$sender->content = preg_replace("|[b](.*?)[/b]|si", "$1", $sender->content);

// Italics: [i]italic text[/i]
$sender->content = preg_replace("/[i](.*?)[\/i]/si", "$1", $sender->content);

File:
esoTalk / plugins / BBCode / plugin.php

Line:
102

OBS: All regexp of BBCODE start with "/" but only "bold" regexp is starting with "|".

@Kyso

Running some tests shows that this might be purposeful. http://www.solmetra.com/scripts/regex/index.php

@tobscure tobscure closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.