Permalink
Browse files

Don't send an empty download

  • Loading branch information...
1 parent 4537e56 commit ef61cf6bb8f97e79a515ad8f22339dc6e69273cc @clbr committed Mar 16, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 js.c
View
2 js.c
@@ -71,6 +71,8 @@ void printJS() {
"function startdl() {\n"
" var urlbox = document.getElementById('add1');\n"
" var url = urlbox.value;\n"
+ " if (url.length < 1)\n"
+ " return;\n"
" fireajax('%1$s?add=' + url);\n"
" urlbox.value = '';\n"

0 comments on commit ef61cf6

Please sign in to comment.