[Tickets #4750] FTP driver doesn't support user groups with spaces

bugs@bugs.horde.org bugs at bugs.horde.org
Thu Dec 7 06:47:27 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4750
-----------------------------------------------------------------------
 Ticket             | 4750
 Created By         | Jan Schneider <jan at horde.org>
 Summary            | FTP driver doesn't support user groups with spaces
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Assigned
 Priority           | 2. Medium
 Owners             | Horde Developers
-----------------------------------------------------------------------


Jan Schneider <jan at horde.org> (2006-12-07 06:47) wrote:

Moved from http://pear.php.net/bugs/bug.php?id=9562&edit=1

Description:
------------
When trying to use Gollem for a web file manager, I ran across 
the problem of it showing the "filename" as a huge output of

ls -l data. After reviewing the array items, I found out that 
$item[4] was becoming the second word in the user group.

Array ( [0] => -rw-r--r-- [1] => 1 [2] => mstanisl [3] => 
domain [4] => u [5] => 407 [6] => Dec [7] => 6 [8] =>
11:22 
[9] => cot_access.rtf )

Once I concatenated the usergroup item 3 + item 4, and 
incremented each remaining array item value by 1, the software 
outputted as expected. This is a cheap workaround for me, but 
the preg expression or some conditional statements will be 
needed to actually fix it.

Test script:
---------------
Gollem with FTP backend having user groups with multiple words. (in
example, "domain users" when using winbind PAM authentication
with FTP)

Expected result:
----------------
The filename is "1 mstanisl domain u 407 Dec 6 11:22 
cot_access.rtf"

Actual result:
--------------
The filename should be "cot_access.rtf".




More information about the bugs mailing list