I have one custom field which is an inputbox as well as a URL field (http) This link point to another website where I have storage space and where I have wma audio files which is in zip format so that when the client click on this field he gets a prompt for downloading the file.
The field is set to show in the category and detail view.
The problem is that when the client click on the title in category view and the detail view opens up then an error message display on the screen:
Warning: strpos() [function.strpos]: Offset not contained in string. in /usr/www/users/mysite/components/com_sobi2/field.class.php on line 706
code on this line is as follows:
else {
/* we have to find the first / and compare it with the allowed addresse.
* To prevent hacks like
http://my.evil.site.com/myEvilScriptToEmbed.js?http://www.youtube.com */
$endOfFld = strpos($data,'/',7);
$fileAddress = substr($data,0,$endOfFld);
if(in_array($fileAddress,$config->allowedEmbedUrl))
$mediaType = 'embed';
}
I suspect it have something to do with the link. What can i do to correct this error?
I use Joomla 1.5.8, Sobi2 ver 2.9.0.2, php 4.4.4-8 + etch6, Apache 1.3.34(Debian), Mysql 5.0.32