From ed5f7e9ebd5b00018dc99dc00ea36ce752a90b5b Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 26 Feb 2013 08:41:44 -0300 Subject: When auth algorithm is hmac-sha512, it produces long lines and wrap them, what breaks the parser. Ignore lines that starts with a space to fix it. Fixes #2842 --- etc/inc/ipsec.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/ipsec.inc') diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index 424ace6..6a00244 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -512,7 +512,7 @@ function ipsec_dump_sad() if ($fd) { while (!feof($fd)) { $line = chop(fgets($fd)); - if (!$line) + if (!$line || $line[0] == " ") continue; if ($line == "No SAD entries.") break; -- cgit v1.1