Fixed magic_quotes bug
Merge branch 'dev/j3/common' into dev/j3/free