mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Saving of custom meta tags (fixes #8288)
This should allow custom meta tags to be saved in the admin panel. Also, if you use html5 video or audio the source sub tag would have been stripped two these are all the tags that may be empty and are valid.
This commit is contained in:
parent
f5754c11aa
commit
df4d7428fa
@ -149,7 +149,7 @@ class HTMLText extends Text {
|
||||
}
|
||||
|
||||
// If it's got a content tag
|
||||
if(preg_match('/<(img|embed|object|iframe)[^>]*>/i', $this->value)) {
|
||||
if(preg_match('/<(img|embed|object|iframe|meta|source)[^>]*>/i', $this->value)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user