The loop in glob_next_url() needs to be done backwards to maintain the logic. dc197894 caused test 1235 to fail.