diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-08-18 20:16:02 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-08-18 20:16:02 +1000 |
| commit | cfc6428219049e34fa0a0bd0830f34bd117d635d (patch) | |
| tree | bdf1f9b62c9fbaa50758c84fe6d466657d07c5ea | |
| parent | 65d2403209d08acbfc1fcb642ba84e76503a8960 (diff) | |
handle post citations with trailing punctuation
| -rw-r--r-- | inc/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php index 229c09b2..951a69a8 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1215,7 +1215,7 @@ } // Cites - if(isset($board) && preg_match_all('/(^|\s)>>(\d+?)(\s|$)/', $body, $cites)) { + if(isset($board) && preg_match_all('/(^|\s)>>(\d+?)([\s,.]|$)/', $body, $cites)) { if(count($cites[0]) > $config['max_cites']) { error($config['error']['toomanycites']); } @@ -1237,7 +1237,7 @@ } // Cross-board linking - if(preg_match_all('/(^|\s)>>>\/(\w+?)\/(\d+)?(\s|$)/', $body, $cites)) { + if(preg_match_all('/(^|\s)>>>\/(\w+?)\/(\d+)?([\s,.]|$)/', $body, $cites)) { if(count($cites[0]) > $config['max_cites']) { error($config['error']['toomanycross']); } |
