entity_metadata_delete_file() currently doesn't check if the passed $fid is valid.
node_delete() for example, does this check (i.e. in node_delete_multiple() it iterates over the loaded nodes)
Patch will follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | entity_1972668_5.patch | 1.69 KB | mile23 |
| #3 | entity_1972668_3.patch | 1.7 KB | mile23 |
| #1 | 1972668-file-delete-1.patch | 566 bytes | amitaibu |
Comments
Comment #1
amitaibuComment #2
amitaibuBetter title
Comment #3
mile23@Amitaibu: I made a regression test and reversed the logic for one less binary decision.
Comment #5
mile23Woops wrong test.
Comment #6
mile23Comment #7
chris matthews commentedThe 6 year old patch in #5 to callbacks.inc applied cleanly to the latest entity 7.x-1.x-dev, but still needs review.