If something comes back up out of the stomach into the mouth, then the fasting person must spit it out; if he deliberately swallows it, his fast is invalidated, but if he swallows it without meaning to, he does not have to do anything.
Standing Committee for Academic Research and Issuing Fatwas