Hello Community,
I've found that the redirections after saving text and config files use relative URLs, but according to RFC 2616 section 14.30 it has to be an absolute URI. The solution is simple: just prepend CMSIMPLE_URL. Probably the cleanest solution would be to prepend it when $this->redir is assigned; another option would be to prepend it when the Location header field is set.
Christoph
XH 1.6(.1): Incorrect redirections in FileEdit.php
XH 1.6(.1): Incorrect redirections in FileEdit.php
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.6(.1): Incorrect redirections in FileEdit.php
Not sure what'd be cleaner; as the latter solution has to be fixed in two places only, I've chosen that (r1279).cmb wrote:Probably the cleanest solution would be to prepend it when $this->redir is assigned; another option would be to prepend it when the Location header field is set.
Christoph M. Becker – Plugins for CMSimple_XH