summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
authormillette <millette@controlyourself.ca>2008-11-13 10:32:16 -0500
committermillette <millette@controlyourself.ca>2008-11-13 10:32:16 -0500
commit5fc9f116776164da15cf6e927849e68f6515cdb9 (patch)
tree2dda4ffc8bed10a21e57ddcc7e1651a6f10f7b9e /actions/newnotice.php
parent14f69f8d2efee5a927821c9a3c134cd1a682c7fe (diff)
trac31 shorten all URLs even if notice is already <
darcs-hash:20081113153216-099f7-81c4aba01babca97edeaf55b230dee300dbeb57a.gz
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 8ea47b235..e88da1687 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -36,13 +36,6 @@ class NewnoticeAction extends Action {
function save_new_notice() {
- # CSRF protection - token set in common_notice_form()
- $token = $this->trimmed('token');
- if (!$token || $token != common_session_token()) {
- $this->client_error(_('There was a problem with your session token. Try again, please.'));
- return;
- }
-
$user = common_current_user();
assert($user); # XXX: maybe an error instead...
$content = $this->trimmed('status_textarea');
@@ -50,8 +43,8 @@ class NewnoticeAction extends Action {
if (!$content) {
$this->show_form(_('No content!'));
return;
- } else if (mb_strlen($content) > 140) {
-
+// } else if (mb_strlen($content) > 140) {
+ } else {
$content = common_shorten_links($content);
if (mb_strlen($content) > 140) {