mvied / wordpress-https

WordPress HTTPS is intended to be an all-in-one solution to using SSL on WordPress sites.
http://wordpress.org/extend/plugins/wordpress-https/
95 stars 41 forks source link

Fix fatal error in casting objects without __toString() method #44

Closed nextime closed 9 years ago

nextime commented 9 years ago

Starting with php 5.2 cast an object to string if the object doesn't have the __toString() method will give a fatal non catchable error. This commit introduce a simple check and fix for that.