While this is a common form of the metaphor, I realized it's not grammatically correct. It should be "hoist(ed) by one's own petard". as originally quoted from Shakespeare's "Hamlet".