I thought that whole quote was not actually attributable to Franklin? What's your source? Not doubting you, I've just seen several different versions and attributions for that quote.
It may not be Franklins. It is in two of Franklin's works, though. In his notes for the Pennsylvania assembly, he quotes this: "They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." (Found
here).
Thus it may be an instance, just like the Jefferson
mis-attribution, where he is quoting someone else.
However, it also appears in
An Historical Review of the Constitution and Government of Pennsylvania from 1759, a work which Franklin did not author, but did publish and he claims some of the ideas in the book are his.
Thus, he
may be the source of the quote, but it is unclear. However, the quote is clearly in his writings.