mirror of https://github.com/raysan5/raylib
Add warning to OpenURL()
See https://github.com/raysan5/raylib/issues/686
This commit is contained in:
parent
30a1edd40e
commit
a8dffc63fb
|
@ -1820,6 +1820,12 @@ int StorageLoadValue(int position)
|
|||
}
|
||||
|
||||
// Open URL with default system browser (if available)
|
||||
// Note:
|
||||
// This function is onlyl safe to use if you control the URL given.
|
||||
// A user could craft a malicious string performing another action.
|
||||
// Only call this function yourself not with user input or make sure to check the
|
||||
// string yourself.
|
||||
// See https://github.com/raysan5/raylib/issues/686
|
||||
void OpenURL(const char *url)
|
||||
{
|
||||
char *cmd = calloc(strlen(url) + 10, sizeof(char));
|
||||
|
|
Loading…
Reference in New Issue