That's a default behaviour of the base64_encode()
as ==
is nothing but padding.
From the wikipedia of base64 encoding..
The '==' and '=' sequence indicate that the last group contained only 8 or 16 bits, respectively.
To remove that, simple do a str_replace()
for the double equal symbol.
$url = get_url(CONFIRM,base64_encode($_POST['status']."|".$agent_id));
$url = str_replace('==','',$url);