adding check for magic_quotes_runtime (Issue #3)