Warlock client uses wrong server address #51
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
suggestion
support
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-warlock#51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently using
$_SERVER['SERVER_NAME']
which it would appear only covers about 90% of situations. For instance, in Apache if theServerName
configuration attribute is set towww.example.com
and there is an alias ofwarlock.example.com
, the application will be available at both addresses. The URL generating will also generate addresses using the appropriate server address as it should.However, if you go to
http://warlock.example.com
then Warlock will still attempt to connect tows://www.example.com
even though the requested address is different. This is because the server configuration in$_SERVER['SERVER_NAME']
reports the server name aswww.example.com
. We need to instead use$_SERVER['HTTP_HOST']
however this can include a port number. I have come up with a nice bit of code that maintains the existing functionality should HTTP_HOST not be available, but if it is, uses it AND strips the port number if needed.assigned to @jamie
changed the description
mentioned in merge request !25
created merge request !25 to address this issue
closed via merge request !25
mentioned in commit
355449b37f