summaryrefslogtreecommitdiff
path: root/controllers/controllers.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/controllers.php')
-rw-r--r--controllers/controllers.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/controllers/controllers.php b/controllers/controllers.php
index a9bc0ab..889c08a 100644
--- a/controllers/controllers.php
+++ b/controllers/controllers.php
@@ -397,6 +397,10 @@ $app->get('/reply/preview', function() use($app) {
if($user=require_login($app)) {
$params = $app->request()->params();
+ if(!isset($params['url']) || !$params['url']) {
+ return '';
+ }
+
$reply_url = trim($params['url']);
if(preg_match('/twtr\.io\/([0-9a-z]+)/i', $reply_url, $match)) {