Skip to content
Snippets Groups Projects
Commit e1d513a9 authored by Arya Pradipta's avatar Arya Pradipta
Browse files

escape slashes

parent 6e41c18e
No related merge requests found
Pipeline #4321 passed with stages
in 8 minutes and 30 seconds
......@@ -43,14 +43,14 @@ class FirebaseNotif
"id" => $id
]
];
echo json_encode($vars);
echo json_encode($vars, JSON_UNESCAPED_SLASHES);
// $cat = $_POST["kategori"];
// if ($cat == "pengumuman" ) {
$vars["notification"]["click_action"] = "mainActivity"; //testing
// $vars["data"] = array("id" => $_POST["id"]);
// }
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($vars)); //Post Fields
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($vars, JSON_UNESCAPED_SLASHES)); //Post Fields
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$headers = [
'Authorization: key=AIzaSyDhcKAiH6wOm8QhHLnYZzrri8SyZZtcoe4',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment