Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self in Atom (via reverse proxy) #180

Closed
FanchTheSystem opened this issue May 2, 2014 · 1 comment
Closed

Self in Atom (via reverse proxy) #180

FanchTheSystem opened this issue May 2, 2014 · 1 comment

Comments

@FanchTheSystem
Copy link

Self link in showATOM function does not work on reverse proxy as REQUEST_URI contain the local path (not the server path)

$feed.='<link rel="self" href="'.htmlspecialchars(serverUrl().$_SERVER["REQUEST_URI"]).'" />';  

It is not good but it can be replaced by :

$feed.='<link rel="self" href="'.htmlspecialchars(serverUrl().'/?do=atom').'" />';  

or

$feed.='<link rel="self" href="'.htmlspecialchars(serverUrl().'/?'.$_SERVER["QUERY_STRING"]).'" />';

I think it is one of the only place where url can't be relative.

It is maybe better to use indexUrl() ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants