From 6ef5db6ead9cb07666cfce2d2470d938f0597ff1 Mon Sep 17 00:00:00 2001
From: Rim <anonymous@mail.com>
Date: Mon, 25 Dec 2023 05:19:22 -0500
Subject: [PATCH] Add regex to sanitize userInfo

---
 clean_friend_feed_regex.txt => clean_friendFeed_regex.txt | 0
 clean_userInfo_regex.txt                                  | 1 +
 curl_userInfo.ps1                                         | 2 +-
 3 files changed, 2 insertions(+), 1 deletion(-)
 rename clean_friend_feed_regex.txt => clean_friendFeed_regex.txt (100%)
 create mode 100644 clean_userInfo_regex.txt

diff --git a/clean_friend_feed_regex.txt b/clean_friendFeed_regex.txt
similarity index 100%
rename from clean_friend_feed_regex.txt
rename to clean_friendFeed_regex.txt
diff --git a/clean_userInfo_regex.txt b/clean_userInfo_regex.txt
new file mode 100644
index 0000000..e08cb60
--- /dev/null
+++ b/clean_userInfo_regex.txt
@@ -0,0 +1 @@
+userInfo\(|\);
\ No newline at end of file
diff --git a/curl_userInfo.ps1 b/curl_userInfo.ps1
index f4985ae..97d5b38 100644
--- a/curl_userInfo.ps1
+++ b/curl_userInfo.ps1
@@ -4,4 +4,4 @@ $URL = "https://profile.callofduty.com/cod/userInfo/$COOKIE_VALUE"
 $USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
 $OUTPUT_FILE = "userInfo.json"
 
-curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE"  -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE
\ No newline at end of file
+curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE
\ No newline at end of file