This allows loading pages that do not have extensions.. my index.php handles loading requests at /path/ which means none of my paths actually have filenames or extensions. I guess it might not be the best generic solution, so shouldn't necessarily be added to the distribution, however, hopefully this change will help someone..
I have a similar problem with handling image urls without extensions. I have to deal with images from a variety of sources and they are often on the form http://some.site/getImage/image.id. Galleries are created dynamically and if one url is on the mentioned form the Shadowbox doesn't work at all. Your fix helped me to get it work, but the problem then is that the viewport is stretched out on the entire screen regardless the image size.