What type of IR or infrared light can pass through glass?

I always assumed that infrared light cannot pass through glass. But, I took my TV remote control, held down a button, placed the IR sender behind a drinking glass, but still detected the IR light with my digital camera on the opposite side of the glass (could see the IR flashing). Was it because the TV remote’s IR wavelength was too short?

I also wonder about thermal imaging which detects the lower range of infrared. If someone is standing behind a window at night and you point a thermal imaging device at the window, can it detect the person’s body heat through the glass?

Thanks. I love physics.