mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-24 18:22:25 -05:00
Extension: Paster Update. Added small check.
This commit is contained in:
parent
18968899ba
commit
c59ea5df02
@ -47,6 +47,13 @@ begin
|
|||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if (not ((Data[1] = '{') and (Data[Length(Data)] = '}'))) then
|
||||||
|
begin
|
||||||
|
Data := '{"data": null, "error": "Host \"' + HOST + '\" is not a LodgeIt Server!"}';
|
||||||
|
Result := False;
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
|
||||||
if (Method = 'pastes.getPaste') then
|
if (Method = 'pastes.getPaste') then
|
||||||
begin
|
begin
|
||||||
//Little hack for getPaste too work....
|
//Little hack for getPaste too work....
|
||||||
|
Loading…
Reference in New Issue
Block a user