mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-27 07:42:49 +01:00
fix for incomplete targetURI
Patch from Franky(liedekef)
This commit is contained in:
parent
942d3928bc
commit
4c277884e0
@ -354,7 +354,13 @@ class Horde_SyncML_SyncMLHdr extends Horde_SyncML_ContentHandler {
|
|||||||
|
|
||||||
if(session_id() != '' && !strpos($this->_targetURI,'syncml_sessionid')) {
|
if(session_id() != '' && !strpos($this->_targetURI,'syncml_sessionid')) {
|
||||||
$output->startElement($uri, 'RespURI', $attrs);
|
$output->startElement($uri, 'RespURI', $attrs);
|
||||||
$output->characters($this->_targetURI . '?syncml_sessionid=' . session_id());
|
|
||||||
|
// some clients don't send the whole URL as targetURI
|
||||||
|
if (strpos($this->_targetURI,$_SERVER['PHP_SELF']) === false) {
|
||||||
|
$output->characters($this->_targetURI . $_SERVER['PHP_SELF'] . '?syncml_sessionid=' . session_id());
|
||||||
|
} else {
|
||||||
|
$output->characters($this->_targetURI . '?syncml_sessionid=' . session_id());
|
||||||
|
}
|
||||||
$output->endElement($uri, 'RespURI');
|
$output->endElement($uri, 'RespURI');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user