Skip to content

Commit 4fb9e2e

Browse files
authored
Merge pull request #115 from iteratehq/fix-encode-ampersand
Fix Encode ampersand
2 parents cc87cd1 + 5b6f48a commit 4fb9e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IterateSDK/SDK/UI/Survey/Controllers/SurveyViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ final class SurveyViewController: UIViewController {
8686
// Use the survey's captured response properties instead of the global ones
8787
if let responseProperties = survey.capturedResponseProperties ?? Iterate.shared.responseProperties {
8888
params.append(contentsOf: responseProperties.map {
89-
let value = "\($0.value.value)".addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? ""
89+
let value = ("\($0.value.value)".addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? "").replacingOccurrences(of: "&", with: "%26")
9090
return "response\($0.value.typeString)_\($0.key)=\(value)" })
9191
}
9292

0 commit comments

Comments
 (0)