Download & Extend

Embed won't work when content has just the ad tag

Project:Advertisement
Version:6.x-2.1
Component:ad_embed module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

Status:active» fixed

Thanks, fix committed:
http://drupal.org/cvs?commit=292764

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.