Bug #4810: fixed detect magic quotes

http://dev.kohanaframework.org/issues/4810
Merge pull request #438 from WinterSilence/patch-5

Bug #4810: fixed detect magic quotes