forked from extern/egroupware
* NetDrive: enable old workarounds for current user-agent string, create 0 byte files when storing without
This commit is contained in:
parent
d43c2d0b54
commit
7be501ab9f
@ -2703,8 +2703,11 @@ class HTTP_WebDAV_Server
|
|||||||
{
|
{
|
||||||
// cadaver (and probably all neon using agents) need a more complete url encoding
|
// cadaver (and probably all neon using agents) need a more complete url encoding
|
||||||
// otherwise special chars like "$,()'" in filenames do NOT work
|
// otherwise special chars like "$,()'" in filenames do NOT work
|
||||||
// netdrive does NOT use a User-Agent, but requires full urlencoding for non-ascii chars (eg. German Umlauts)
|
if (strpos($_SERVER['HTTP_USER_AGENT'],'neon') !== false ||
|
||||||
if (strpos($_SERVER['HTTP_USER_AGENT'],'neon') !== false || !isset($_SERVER['HTTP_USER_AGENT']))
|
// old netdrive does NOT use a User-Agent, but requires full urlencoding for non-ascii chars (eg. German Umlauts)
|
||||||
|
!isset($_SERVER['HTTP_USER_AGENT']) ||
|
||||||
|
// current netdrive uses "NetDrive 2.5.8" as user-agent
|
||||||
|
stripos($_SERVER['HTTP_USER_AGENT'],'NetDrive') !== false)
|
||||||
{
|
{
|
||||||
return strtr(rawurlencode($url),array(
|
return strtr(rawurlencode($url),array(
|
||||||
'%2F' => '/',
|
'%2F' => '/',
|
||||||
|
Loading…
Reference in New Issue
Block a user