1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 01:34:31 +01:00

Bug: Banners weren't displaying if board was over 10 chars long

This commit is contained in:
8chan 2014-11-12 21:04:58 -08:00
parent 802dd12c7c
commit 47aa1a520d

View File

@ -8,7 +8,7 @@ header("Expires: 0");
function get_custom_banner(&$b) {
# Validate the board name
if (!(isset($b) && preg_match('/^[a-z0-9]{1,10}$/', $b)))
if (!(isset($b) && preg_match('/^[a-z0-9]{1,30}$/', $b)))
return null;
# Check if directory exists