Follow-up Comment #3, bug #11239 (project phpgroupware):
I have found the cause to my problem. In the phpgw_config table there is no
webserver_url name/value. this is caused by $_SERVER['PHP_SELF'] returning
nothing on some setups. When you configure phpgw it tries to set the variable
'webserver_url' but since my system returned nothing for $_SERVER['PHP_SELF']
it was not set.
In filemanager (phpgw_vfs) there is a conditional that checks against the
webserver_url variable, being that there is non set it is checking vs nothing
and sometimes this passes and the server adds a / (slash) onto the begining of
a uuencoded filename. This when uudecoded creates a garbage string
like your '�e]I�1])�\210���\221�9' to fix it I added webserver_url
to the phpgw_config table with phpgwapi being the app and my webserver http
address as the value.
I suppose adding a check for null value in the /setup/config.php
would be one way to stop this from happening.
// guessing the phpGW url
$parts = explode('/',$_SERVER['PHP_SELF']);
unset($parts[count($parts)-1]); // config.php
unset($parts[count($parts)-1]); // setup
$GLOBALS['current_config']['webserver_url'] = implode '/',$parts);
Hope this helps someone!
Greg
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11239>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Phpgroupware-tracker mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-tracker