diff options
author | Ermal <eri@pfsense.org> | 2011-01-19 20:56:23 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-01-19 20:56:23 +0000 |
commit | f5bafe95a1fb4372288816debaa21b4f943a32e8 (patch) | |
tree | c16d713f636aa740c5690aae451efc2b00057b9a /etc/inc/crypt.inc | |
parent | 38bdc48def49d9edc617baebd243e03c71c79496 (diff) | |
download | pfsense-f5bafe95a1fb4372288816debaa21b4f943a32e8.zip pfsense-f5bafe95a1fb4372288816debaa21b4f943a32e8.tar.gz |
Resolves 1209. Correctly calculate the necessary data to return from an 'pfsense' format encrypted file.
Diffstat (limited to 'etc/inc/crypt.inc')
-rw-r--r-- | etc/inc/crypt.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/crypt.inc b/etc/inc/crypt.inc index dc40eb9..582a84c 100644 --- a/etc/inc/crypt.inc +++ b/etc/inc/crypt.inc @@ -85,12 +85,12 @@ $body_pos = $btag_pos + $btag_len; $body_len = strlen($in); - $body_len -= strlen($btag_len); - $body_len -= strlen($etag_len); + $body_len -= $btag_len; + $body_len -= $etag_len + 1; $out = substr($in, $body_pos, $body_len); return true; } -?>
\ No newline at end of file +?> |