Hmm, there seems to be a few of these.
This guy seems to have figured it out: https://github.com/osTicket/osTicket/issues/3733#issuecomment-305755642
Haven't tested the solution, if it works, maybe post in that issue thread and we can build a pull request, get it fixed for the next version.