elkarte / Elkarte

ElkArte Forum. A free, open source, modern discussion forum / BB
https://elkarte.github.io/Elkarte/
BSD 3-Clause "New" or "Revised" License
176 stars 61 forks source link

removeNestedQuotes #2016

Closed joshuaadickerson closed 9 years ago

joshuaadickerson commented 9 years ago
            $form_message = preg_replace(array('~\n?\[quote.*?\].+?\[/quote\]\n?~is', '~^\n~', '~\[/quote\]~'), '', $form_message);

Search for "removeNestedQuotes". Anywhere you see that, it should have a call to a new function with the same name (probably in Subs.php). I count 3 occurrences of it.

I'd submit a new PR but I just bought a new computer and haven't setup Git on it yet.

Function:

function removeNestedQuotes($message)
{
    return preg_replace(array('~\n?\[quote.*?\].+?\[/quote\]\n?~is', '~^\n~', '~\[/quote\]~'), '', $message);
}
emanuele45 commented 9 years ago

https://github.com/emanuele45/Dialogo/commit/a3ddff9d76b99fcc188e06706c91974b69b2e6c8