Extension: Paster Update. Added small check.

This commit is contained in:
John P (Dgby714) 2010-10-17 14:18:41 -04:00
parent 18968899ba
commit c59ea5df02
1 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,13 @@ begin
Exit;
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
begin
//Little hack for getPaste too work....