13.02.2016, 12:42
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[], Float
osX, Float
osY, Float
osZ , 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?
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[], Float



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?