Handle question mark (?) after cross-board or cross-post link
This commit is contained in:
parent
f09968a516
commit
8e9dc2736b
@ -1225,7 +1225,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cites
|
// 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']) {
|
if(count($cites[0]) > $config['max_cites']) {
|
||||||
error($config['error']['toomanycites']);
|
error($config['error']['toomanycites']);
|
||||||
}
|
}
|
||||||
@ -1247,7 +1247,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cross-board linking
|
// 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']) {
|
if(count($cites[0]) > $config['max_cites']) {
|
||||||
error($config['error']['toomanycross']);
|
error($config['error']['toomanycross']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user