summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-09 21:13:44 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-04-09 21:13:44 +1000
commit033491f84f9e58308954b049d3574e8791c6c3c2 (patch)
treef5311fb408ba0191c65377697a539e1fa90d5a82 /inc
parent874b8cbf002e9d8bf0ff39671e1501165016320a (diff)
increase character limit on board URI, title and subtitle
Diffstat (limited to 'inc')
-rw-r--r--inc/display.php2
-rw-r--r--inc/mod.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/inc/display.php b/inc/display.php
index 8be431aa..ef6d1efc 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -122,7 +122,7 @@
$body = html_entity_decode($body, ENT_COMPAT, 'UTF-8');
// calculate strlen() so we can add "..." after if needed
- $strlen = strlen($body);
+ $strlen = mb_strlen($body);
$body = substr($body, 0, $len);
diff --git a/inc/mod.php b/inc/mod.php
index f2e52b21..43ed760d 100644
--- a/inc/mod.php
+++ b/inc/mod.php
@@ -213,17 +213,17 @@
'<table>' .
'<tr>' .
'<th><label for="board">URI</label></th>' .
- '<td><input type="text" name="uri" id="board" size="10" maxlength="15" />' .
+ '<td><input type="text" name="uri" id="board" size="10" />' .
' <span class="unimportant">(eg. "b"; "mu")</span></td>' .
'</tr>' .
'<tr>' .
'<th><label for="title">Title</label></th>' .
- '<td><input type="text" name="title" id="title" size="25" maxlength="40" />' .
+ '<td><input type="text" name="title" id="title" size="25" />' .
' <span class="unimportant">(eg. "Random")</span></td>' .
'</tr>' .
'<tr>' .
'<th><label for="subtitle">Subtitle</label></th>' .
- '<td><input type="text" name="subtitle" id="subtitle" size="25" maxlength="120" />' .
+ '<td><input type="text" name="subtitle" id="subtitle" size="25" />' .
' <span class="unimportant">(optional)</span></td>' .
'</tr>' .
'<tr>' .