Attempt to sanitize data in import func

This commit is contained in:
Josuan Albin
2017-11-03 21:59:14 +01:00
parent f06211862e
commit 033db02dc6

View File

@ -5,7 +5,7 @@ params ["_display"];
private _data = call (compile copyFromClipboard);
if !(_data isEqualType []) exitWith {
if (isNil "_data" || {!(_data isEqualType [])}) exitWith {
[_display, "Wrong format given"] call FUNC(message);
};