Skip to content

Commit cb859cf

Browse files
generatedunixname89002005287564meta-codesync[bot]
authored andcommitted
Fix CQS signal performance-faster-string-find in fbcode/glean/client
Reviewed By: Wilfred Differential Revision: D83817667 fbshipit-source-id: 7b5db8d3f24225d10921715fe63125592335393a
1 parent 37941a4 commit cb859cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

glean/client/swift/JsonServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ folly::coro::Task<void> JsonServer::processRequest(
134134

135135
// Replace single quotes with escaped version to prevent quote injection
136136
size_t pos = 0;
137-
while ((pos = safeInput.find("'", pos)) != std::string::npos) {
137+
while ((pos = safeInput.find('\'', pos)) != std::string::npos) {
138138
safeInput.replace(pos, 1, "\\'");
139139
pos += 2; // Move past the escaped quote
140140
}

0 commit comments

Comments
 (0)