Skip to content

Commit

Permalink
Mask password placeholder in command execution dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Oct 12, 2020
1 parent 1278216 commit 39f1504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/DatabaseWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ void DatabaseWidget::openUrlForEntry(Entry* entry)

// otherwise ask user
if (!launch && cmdString.length() > 6) {
QString cmdTruncated = cmdString.mid(6);
QString cmdTruncated = entry->resolveMultiplePlaceholders(entry->maskPasswordPlaceholders(entry->url()));
cmdTruncated = cmdTruncated.mid(6);
if (cmdTruncated.length() > 400) {
cmdTruncated = cmdTruncated.left(400) + " […]";
}
Expand Down

0 comments on commit 39f1504

Please sign in to comment.