a veces el decifrado falla porque el valor todavía no estaba cifrado
buscamos un espacio para saber si se trata de una oración o un mensaje que realmente no se pudo decifrar. fixes #1704 fixes #1706 fixes #1708 fixes #1709 fixes #1710 fixes #1712 fixes #1713 fixes #1714 fixes #1717 fixes #1718 fixes #1719 fixes #1721 fixes #1723 fixes #1724 fixes #1725 fixes #1728 fixes #1779 fixes #1780 fixes #1785 fixes #1799 fixes #1800 fixes #1802 fixes #1803 fixes #1804 fixes #1805 fixes #1807 fixes #1809 fixes #1810 fixes #1811 fixes #1813
This commit is contained in:
parent
691f064a24
commit
160558470b
1 changed files with 6 additions and 2 deletions
|
@ -211,10 +211,14 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
|
||||||
|
|
||||||
box.decrypt_str value.to_s
|
box.decrypt_str value.to_s
|
||||||
rescue Lockbox::DecryptionError => e
|
rescue Lockbox::DecryptionError => e
|
||||||
|
if value.to_s.include? ' '
|
||||||
|
value
|
||||||
|
else
|
||||||
ExceptionNotifier.notify_exception(e, data: { site: site.name, post: post.path.absolute, name: name })
|
ExceptionNotifier.notify_exception(e, data: { site: site.name, post: post.path.absolute, name: name })
|
||||||
|
|
||||||
I18n.t('lockbox.help.decryption_error')
|
I18n.t('lockbox.help.decryption_error')
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Cifra el valor.
|
# Cifra el valor.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue