Do not return invalid hash from ApiStashEdit
authorAryeh Gregor <ayg@aryeh.name>
Mon, 6 Aug 2018 16:54:04 +0000 (19:54 +0300)
committerKrinkle <krinklemail@gmail.com>
Mon, 6 Aug 2018 20:44:20 +0000 (20:44 +0000)
commit6380cadedc572056c16179a402de4a92b3300212
tree723f3fbd7de923cd7184c2c78fdf392091a775e2
parent8f0d427c6365b7a97bc9ea2c4f5db27fd0e8d5a3
Do not return invalid hash from ApiStashEdit

If we were rate-limited, we don't store a new hash, so we shouldn't
return a new one.  If we received a hash from the client, however, that
should still be valid, so we can return it.

Change-Id: Ifc37ae044172b8838fee15d539b076a0d0f02f22
includes/api/ApiStashEdit.php