summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--freeradius3-editmacauthfile-html.lsp2
1 files changed, 1 insertions, 1 deletions
diff --git a/freeradius3-editmacauthfile-html.lsp b/freeradius3-editmacauthfile-html.lsp
index 756abf3..fc59628 100644
--- a/freeradius3-editmacauthfile-html.lsp
+++ b/freeradius3-editmacauthfile-html.lsp
@@ -44,7 +44,7 @@
var success = true;
var file = "";
var lines = $("#entries").find("input").each(function(index){
- if ($(this).val() == "") {
+ if (/^\s*$/.test($(this).val())) {
$(this).parent().parent().replaceWith();
} else {
file = file + $(this).val() + "\n";