-
Notifications
You must be signed in to change notification settings - Fork 448
Fix #4075: Sanitize Device Name while displaying in Sync Settings Screen #4076
Conversation
|
||
/// Encode Strings which are not sanitized for displaying | ||
/// - Returns: Encoded String | ||
public func encodeContaminatedString() -> String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like a simple function, but maybe add a small unit test for it?
this can also be a computer property instead of a func
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use this code or remove it, looks like we are duplicating code here: https://github.com/brave/brave-ios/blob/development/Shared/Extensions/WKWebViewExtensions.swift#L83?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap I am carrying that exact function inside StringExtensions and adding test for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate method is removed and added as computed property and unit tests are added
Changes at 26c16ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol
Fixes low priority security issue for History Sync PR.
#3703 (comment)
Summary of Changes
This pull request fixes #4075
Submitter Checklist:
NSLocalizableString()
Reviewer Checklist:
QA/(Yes|No)
bug
/enhancement