Skip to content

Commit

Permalink
Load/Save encrypted text as unencrypted on exceptions to prevent data…
Browse files Browse the repository at this point in the history
… corruption
  • Loading branch information
Nonononoki committed Jul 17, 2021
1 parent 033c5d3 commit 97b9269
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -87,7 +87,7 @@ public String convertToDatabaseColumn(String attribute) {
try {
return encode(attribute);
} catch (Exception e) {
return null;
return attribute;
}
}

Expand All @@ -96,7 +96,7 @@ public String convertToEntityAttribute(String dbData) {
try {
return decode(dbData);
} catch (Exception e) {
return null;
return dbData;
}
}
}

0 comments on commit 97b9269

Please sign in to comment.