Commit df8ee335 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix two cases where sphinx detected URLs where it should not.

parent a104a2b4
......@@ -37,12 +37,16 @@ webserver on the same machine.
No worries, says the power that controls what URLs look like, we
will just stick the port number after the IP# with a colon:
.. code-block:: text
http://192.168.0.1:8080/...
That obviously does not work with IPv6, so RFC3986 comes around and
says "darn, we didn't think of that" and puts the IPV6 address in
[...] giving us:
.. code-block:: text
http://[1080::8:800:200C:417A]:8080/
Remember that "harmless in shells" detail ? Yeah, sorry about that.
......@@ -55,11 +59,15 @@ even need to know if it is a IPv4 or IPv6 address in the first place.
But it returns the IP# in one buffer and the port number in another,
so if you want to format the sockaddr in the by RFC5952 recommended
way (the same as RFC3986), you need to inspect the version field
in the sockaddr to see if you should do
in the sockaddr to see if you should do:
.. code-block:: text
"%s:%s", host, port
or
or:
.. code-block:: text
"[%s]:%s", host, port
......
......@@ -237,7 +237,7 @@ SIGNALS
NOTES
=====
The %r formatter is equivalent to "%m http://%{Host}i%U%q %H". This
The %r formatter is equivalent to ``%m http://%{Host}i%U%q %H``. This
differs from apache's %r behavior, equivalent to "%m %U%q %H".
Furthermore, when using the %r formatter, if the Host header appears
multiple times in a single transaction, the first occurrence is used.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment