Embed won't work when content has just the ad tag
sistemistica - October 30, 2009 - 10:42
| Project: | Advertisement |
| Version: | 6.x-2.1 |
| Component: | ad_embed module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
This is because the function that searches for tags start from position one. The issue should be solved changing file embed\ad_embed.module, line 244 as follow:
Replace:
$pos = strpos($text, $open, $pos+1);
if ($pos) {
With:
$pos = strpos($text, $open, $pos);
if ($pos !== FALSE) {
Thanks for this great Drupal module,
Luigi

#1
Thanks, fix committed:
http://drupal.org/cvs?commit=292764
#2
Automatically closed -- issue fixed for 2 weeks with no activity.