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
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

Jeremy - November 23, 2009 - 04:07
Status:active» fixed

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

#2

System Message - December 7, 2009 - 04:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.