What does 'Any port in a storm' mean?

This means that in an emergency any solution will do, even one that would normally be unacceptable.

Idioms similar to 'Any port in a storm'

See also: