[TYPO3] Error Viewing Site with MAC and Safari Browser
Rens Admiraal
typo3 at ambitiondesign.nl
Mon Jun 11 14:15:48 CEST 2007
Hi,
you substr function misses the starting position, and eventually the
length of the string that should be returned...
It should be something like this:
> list(,$temp)=explode('/',substr($data['user_agent'], 0, 10));
Op 11-jun-2007, om 14:06 heeft Jamie Clarke het volgende geschreven:
> Hi
>
> I am currently having problems with users being able to view my site
> using the Safari browser. The below error message is generated:
>
> Warning: Wrong parameter count for substr() in
> /home/spds/public_html/typo3conf/ext/pp_stats/
> class.tx_ppstats_tsfehook.
>
> php on line 181
>
> The code from line 179 - 182 of class.tx_ppstats_tsfehook.php is
> below:
>
> } elseif ($temp=stripos($data['user_agent'],'Safari')) {
>
> //Safari
>
> list(,$temp)=explode('/',substr($data['user_agent']));
>
> $data['user_agent_resolved']='Safari;'.$temp.';';
>
> Can anyone please advise?
>
> Kind Regards
>
> Jamie Clarke
> IT Support Analyst
> Singlepoint Data Services Ltd
>
> DDI: 0870 251 7113
> www.singlepoint-dataservices.co.uk
> <http://www.singlepoint-dataservices.co.uk/>
> This E-mail and any file transmitted with it are for the exclusive
> and confidential use of the addressee. Any other distribution, use
> or reproduction without our prior consent is unauthorised and
> strictly prohibited. If you have received this message in error,
> please notify the sender immediately and delete the material from
> your computer. All copyright and other intellectual property rights
> lie with the sender. This E-mail and any attachment must be
> checked by every recipient for viruses, trojans, worms and other
> harmful code, as to which the sender accepts no responsibility or
> liability. Singlepoint has the right lawfully to record, monitor
> and inspect messages between its employees and any third party.
> Your messages shall be subject to such lawful supervision as
> Singlepoint deems to be necessary in order to protect its
> information, its interests and its reputation.
>
> Singlepoint Holdings Limited. 08702 517100
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list