added check for Magic Quotes