From 065584df81673682e5abb479b2c39c15c00c7458 Mon Sep 17 00:00:00 2001 From: Sameer <142401625+sameer6pre@users.noreply.github.com> Date: Tue, 24 Jun 2025 13:37:22 +0530 Subject: [PATCH] Update orbit-app/src/pages/profile.jsx in branch Precogs-fix-ykpmxzno --- orbit-app/src/pages/profile.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/orbit-app/src/pages/profile.jsx b/orbit-app/src/pages/profile.jsx index 782625e..1fc1edd 100644 --- a/orbit-app/src/pages/profile.jsx +++ b/orbit-app/src/pages/profile.jsx @@ -52,7 +52,15 @@ function Profile() { type="text" placeholder="Enter User ID" value={userId} - onChange={(e) => setUserId(e.target.value)} +(e) => { + const sanitizedValue = sanitizeInput(e.target.value); // Ensure input is sanitized + setUserId(sanitizedValue); +} + +function sanitizeInput(input) { + // Example sanitization function + return input.replace(/<[^>]*>?/gm, ''); // Removes HTML tags +} />