Please login or register.

Login with username, password and session length
Advanced search  

News:

Anzeige:

SOBI2 Featured Listings Plugin
Featured Listings
SOBI2 Radius Distance Search Plugin
Radius Distance Search
SOBI2 Import & Backup Plugin
SOBI2 Import & Backup
SOBI2 Search Module
Search Module
SOBI Donation/Spende
Pages: [1]   Go Down

Author Topic: field.class.php strpos() error  (Read 1721 times)

0 Members and 1 Guest are viewing this topic.

lex

  • SOBI Newbie
  • *
  • Thanx from users: 0
  • Offline Offline
  • Posts: 9

  • Reviews:

    What is it?

field.class.php strpos() error
« on: 09. January 2009, 13:08:37 »
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
« Last Edit: 09. January 2009, 13:48:44 by lex »
Logged
Country: South Africa South Africa |  OS: Unknown Unknown Browser: Unknown Unknown |  View Profile
Do you want continued ongoing development, new features and active support?
Please write a review or just vote for SOBI on JED.
Pages: [1]   Go Up
« previous next »
 

Page created in 0.065 seconds with 28 queries.

Partner Sites: Joomla Web Design  |  Yagendoo Templates  |  LayDev - Joomla Templates  |  Joomla Downloads  |  CyberTyper.ch  |  Codingfish  |  Akeeba Backup  |  FLEXIcontent  |  templates4ALL  |  Joomla! InSecurity