[TYPO3-dev] Antw: filelink with spaces

Uwe Trotzek Trotzek at citeq.de
Wed May 8 16:54:32 CEST 2013


Hi Christian,

only a gut feeling:

I would say your path string doesn't pass the is_file() funtion within the filelink method of the cObj class. Because if is_file($path) returns false, the links aren't rendered at all.

You could test the "strange" path's calling the is_file() function, just to be sure this isn't the problem. 

Or take a deeper look using XDebug or something else :)

Cheers
Uwe

>>> Christian Welzel <gawain at camlann.de> 08.05.2013 15:36 >>>
Hi there,

currently i'm trying to use jumpurl=1 and secure=1 together with
filelink(). This looks like this:

$this->cObj->filelink(utf8_encode($files[$i]['name']), array('path' =>
$url.'/','jumpurl'=>1, 'jumpurl.' => array('secure'=>1)));

This works properly as long as the path does not contain spaces or other
"strange" letters (like "()"). But if it does, no link is generated.
Is there a way to also generate links for such files?


-- 
 MfG, Christian Welzel

  GPG-Key:     http://www.camlann.de/de/pgpkey.html 
  Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev at lists.typo3.org 
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev




More information about the TYPO3-dev mailing list