[TYPO3-dev] New 4.6.17 leads to #1359987599: jumpurl: Calculated juHash did not match the submitted juHash.

Gregor Hermens gregor at a-mazing.de
Wed Mar 6 17:22:21 CET 2013


Hi Roland,

Roland Hager wrote:

> I added the following two lines at the beginning of the function
> allowUrlsUsedInSiteContent
> 
>      $url=ltrim($url, 'http://');
>      $url=ltrim($url, 'https://');

ltrim($str, $charlist) strips each of the chars in $charlist from $str. To 
remove only the whole string $charlist maybe better use something like:

$url = preg_replace('|^https?://|', '', $url);

hth
Gregor
-- 
http://www.a-mazing.de/   |   Certified TYPO3 Integrator




More information about the TYPO3-dev mailing list