- πΊπ¦Ukraine AstonVictor
I'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks
This issue is in reference to this issue β , but a little different so i wanted to make another issue to track it.
In the other issue the problem was coming from the [embed] tag, however what I'm up against is the filter picking up the URL without the embed tag. The issue is that WYSIWYG always place a
tag on any new line. Since the function below is only looking for a patttern that matches http it rejects the string as a pattern match.
While its not idea for the module at large, is there anyway I can check for the pattern along with
to ensure that it always gets read and converted?
function oembed_filter_oembed_prepare($text, $filter, $format, $langcode, $cache, $cache_id) {
if ($filter->settings['autoembed']) {
$pattern = '|^\s*(https?://[^\s"]+)\s*$|im';
$text = preg_replace_callback($pattern, 'oembed_preg_auto_replace', $text);
}
return $text;
}
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks