[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-tracker] [bug #11239] Unable to manage VCF files with a da
From: |
Greg Knapp |
Subject: |
[Phpgroupware-tracker] [bug #11239] Unable to manage VCF files with a dash "-" in the file name |
Date: |
Wed, 4 May 2005 20:08:09 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) |
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]I1])Ù\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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-tracker] [bug #11239] Unable to manage VCF files with a dash "-" in the file name,
Greg Knapp <=