craft-videoembedder icon indicating copy to clipboard operation
craft-videoembedder copied to clipboard

Exception with invalid entries

Open woutsluiter opened this issue 6 years ago • 1 comments

Hello! I have the following issue: I'm able to save invalid urls, which causes exceptions in the admin and frontend, even without devMode. It results in being unable to even change the value afterwards because of the exception. I have to dig in the database itself. I would expect to get a warning when trying to save an invalid value, or get a null / undefined value in the template or something.

PS: I'm not that great with php/backend, otherwise I would've created a PR myself. Great plugin though!

woutsluiter avatar Jan 23 '19 22:01 woutsluiter

Hmm ok. I'm honestly not great with PHP myself either. This was just created out of necessity. I'll try and find some time to look into how to add checks before the entry is saved to ensure a valid URL.

mikestecker avatar Feb 18 '19 19:02 mikestecker