<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-shared.c, branch v0.8</title>
<subtitle>🍴 My patches to cgit
</subtitle>
<id>https://git.ache.one/cgit/atom?h=v0.8</id>
<link rel='self' href='https://git.ache.one/cgit/atom?h=v0.8'/>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/'/>
<updated>2008-10-05T19:18:45Z</updated>
<entry>
<title>ui-shared: add cgit_tag_link()</title>
<updated>2008-10-05T19:18:45Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T19:18:45Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=cf61ad411c41a774c9671651704bdeb78ccc1036'/>
<id>urn:sha1:cf61ad411c41a774c9671651704bdeb78ccc1036</id>
<content type='text'>
This function can be used to generate properly escaped links to the tag
page.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-shared: generate proper links in cgit_object_link()</title>
<updated>2008-10-05T19:12:08Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T19:12:08Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=8b5fc6de036cf159ffa61a55158044749bd6f4d9'/>
<id>urn:sha1:8b5fc6de036cf159ffa61a55158044749bd6f4d9</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-shared: use html_url_path() to get properly escaped url in form action</title>
<updated>2008-10-05T17:25:47Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T17:25:47Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=2e884f3162771880a2a5260713d6b7d1aa25bc6f'/>
<id>urn:sha1:2e884f3162771880a2a5260713d6b7d1aa25bc6f</id>
<content type='text'>
When a repo uses an url with e.g. '#' or '?' characters this needs to be
properly escaped when used as action in a form tag.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-shared: reword the standard page footer</title>
<updated>2008-10-05T17:09:58Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T17:09:58Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=b9aabf0b8fbf3a3ab69010ee2c9ed5426c751912'/>
<id>urn:sha1:b9aabf0b8fbf3a3ab69010ee2c9ed5426c751912</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-shared: do not print repo name on the "summary" tab</title>
<updated>2008-10-05T17:00:32Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T17:00:32Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=23ffba78b4572f35f0ee52410dde9a16e6d02ce5'/>
<id>urn:sha1:23ffba78b4572f35f0ee52410dde9a16e6d02ce5</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-repolist + ui-shared: Use cgit_summary_link()</title>
<updated>2008-10-05T15:16:36Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T15:16:36Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=49ecbbddf0659c6409befcfe8989f92196133cda'/>
<id>urn:sha1:49ecbbddf0659c6409befcfe8989f92196133cda</id>
<content type='text'>
This makes is possible to use cgit with repository urls containing special
url characters like '#' and '?'.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-shared.c: add cgit_summary_link()</title>
<updated>2008-10-05T14:55:50Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T14:55:50Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=e9d3bd544fe94ba5ade9ccf185328fcc2414814b'/>
<id>urn:sha1:e9d3bd544fe94ba5ade9ccf185328fcc2414814b</id>
<content type='text'>
This function can be used to generate a link to the summary page for the
currently active repo.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-shared.c: use html_url_path() in repolink()</title>
<updated>2008-10-05T14:54:44Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T14:54:44Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=44b208aa44c4cdf7e1e339bbd5b028c23da55a46'/>
<id>urn:sha1:44b208aa44c4cdf7e1e339bbd5b028c23da55a46</id>
<content type='text'>
This makes sure that reponames and paths are properly escaped when used
as urls.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-shared.c: use html_url_arg()</title>
<updated>2008-10-05T10:52:25Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T10:52:25Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=b575115d9d93e45cdbcd5d066cc445d34639ae6a'/>
<id>urn:sha1:b575115d9d93e45cdbcd5d066cc445d34639ae6a</id>
<content type='text'>
The link-generating functions are updated to use the new html_url_arg
function, thereby fixing links to strange repos, branches and files.

Also, the test-suite is updated to verify some cases of strange urls.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>use Host: header to generate cgit_hosturl</title>
<updated>2008-09-01T23:26:37Z</updated>
<author>
<name>Eric Wong</name>
<email>normalperson@yhbt.net</email>
</author>
<published>2008-09-01T06:30:33Z</published>
<link rel='alternate' type='text/html' href='https://git.ache.one/cgit/commit/?id=9c931b1e6e68f8dc891a5653035c3d70038ae3c0'/>
<id>urn:sha1:9c931b1e6e68f8dc891a5653035c3d70038ae3c0</id>
<content type='text'>
I run an instance of lighttpd for cgit behind nginx (nginx
doesn't execute CGI).  So the port (SERVER_PORT=33333) that
lighttpd runs on sends to cgit is different from the standard
port 80 that public clients connect to (via nginx).

This was causing the Atom feed URL to show the private port
number that lighttpd was running on.

Since the HTTP/1.1 "Host" header includes the port number if
running on a non-standard port, it allows non-client-facing HTTP
servers to transparently generate public URLs that clients can
see.

So use the "Host" header if it is available and fall back to
SERVER_NAME/SERVER_PORT for some clients that don't set
HTTP_HOST.

Signed-off-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
</feed>
