Skip to content

Commit

Permalink
fix: Revert "fix(capture): strip invalid utf16 surrogate pairs from i…
Browse files Browse the repository at this point in the history
…nput" (#25523)
  • Loading branch information
oliverb123 authored Oct 10, 2024
1 parent 7a9a699 commit bb253db
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 345 deletions.
1 change: 0 additions & 1 deletion rust/capture/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pub mod api;
pub mod config;
pub mod limiters;
pub mod passes;
pub mod prometheus;
pub mod redis;
pub mod router;
Expand Down
312 changes: 0 additions & 312 deletions rust/capture/src/passes/invalid_surrogates.rs

This file was deleted.

1 change: 0 additions & 1 deletion rust/capture/src/passes/mod.rs

This file was deleted.

3 changes: 0 additions & 3 deletions rust/capture/src/v0_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use tracing::instrument;
use uuid::Uuid;

use crate::api::CaptureError;
use crate::passes::invalid_surrogates::InvalidSurrogatesPass;
use crate::prometheus::report_dropped_events;
use crate::token::validate_token;

Expand Down Expand Up @@ -177,8 +176,6 @@ impl RawRequest {
s
};

let payload: String = InvalidSurrogatesPass::new(payload.chars()).collect();

tracing::debug!(json = payload, "decoded event data");
Ok(serde_json::from_str::<RawRequest>(&payload)?)
}
Expand Down
28 changes: 0 additions & 28 deletions rust/capture/tests/invalid_surrogate.json

This file was deleted.

0 comments on commit bb253db

Please sign in to comment.