Critical bugs #198 can't add link

This commit is contained in:
Danang Probo Sayekti 2015-08-29 08:25:05 +07:00
commit b7d970a09a

View file

@ -478,6 +478,7 @@ post('/add/link', function () {
$description = from($_REQUEST, 'description');
$user = $_SESSION[config("site.url")]['user'];
$draft = from($_REQUEST, 'draft');
$category = from($_REQUEST, 'category');
if ($proper && !empty($title) && !empty($tag) && !empty($content) && !empty($link)) {
if (!empty($url)) {
add_link($title, $tag, $url, $content, $user, $description, $link, $draft, $category);