Escaping Audio URLs
#1

Hey,

I wanted to make Audiostreams playable from an UCP so Players can load completely own Radios etc dynamicly into SAMP.

The Problem is that the function, PlayAudioStreamForPlayer(playerid, url[], FloatosX, FloatosY, FloatosZ , Float:distance, usepos), uses a string as URL and thus I'm not sure how I manage it so Players can't inject their own code with this feature.

Atm I'm thinking that an Audio-URL with a "; at the end could lead to Script errors or even custom written code that gets injected.

The question is can I somehow excape the URL or do i have to make the checks in the PHP script?
Reply
#2

I believe the URL input is already escaped in SA-MP's code. If it wasn't then there would be many reported crashes and errors regarding the function. So additional escaping and filtering is unnecessary.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)