My plugin takes in a URL and in order to use it, I have to cleanse it a la:
$src = $TMPL->fetch_param('src');
$src = str_replace("/", "/", $src); // clean up passed src param
To me, that seems a little hacky…is there a better way to clean the URL so that it is usable?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.