diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-09-30 05:10:13 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-09-30 05:10:13 +1000 |
| commit | 8e9dc2736b9a50c6380431d00c67f734a26911bd (patch) | |
| tree | f02f791cc054f50a16051a6443e20061636f9ee4 /inc/functions.php | |
| parent | f09968a516f3d62228a3ebbe8cccb97581a83c1d (diff) | |
Handle question mark (?) after cross-board or cross-post link
Diffstat (limited to 'inc/functions.php')
| -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 d47cecf1..8f28d7c0 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1225,7 +1225,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']); } @@ -1247,7 +1247,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']); } |
