modolabs / Kurogo-Mobile-Web

Kurogo is a PHP framework for delivering high quality, data driven customizable content to a wide range of mobile devices. Its strengths lie in the customizable system that allows you to adapt content from a variety of sources and easily present that to mobile devices from feature phones, to early generation smart phones, to modern devices and tablets
http://kurogo.org
GNU Lesser General Public License v2.1
198 stars 99 forks source link

If there is garbage at the start of an ICal feed, throw an Exception rather than a Fatal Error. #39

Closed adamfranco closed 12 years ago

adamfranco commented 12 years ago

Trying to parse an ICal feed with garbage at the beginning of the feed was causing fatal errors due to end($nesting) returning FALSE rather than an object. This change allows parsing to throw an Exception that might be handled more gracefully.

This change is based of an old point in the master branch (where we last merged from), but should merge cleanly into the current master.