only strip value if magic quote is enabled

Signed-off-by: crynobone <crynobone@gmail.com>