<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-shared.c, branch v0.8.1.1</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/ui-shared.c?h=v0.8.1.1</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/ui-shared.c?h=v0.8.1.1'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2009-01-11T20:23:04Z</updated>
<entry>
<title>Avoid SEGFAULT on invalid requests</title>
<updated>2009-01-11T20:23:04Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-01-11T20:23:04Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=eb14609dc46461728a065c0a243b338fc32fd762'/>
<id>urn:sha1:eb14609dc46461728a065c0a243b338fc32fd762</id>
<content type='text'>
When an unknown page is requested, either on the querystring or via
PATH_INFO, we end up with a null-referencing cgit_cmd. This null-
pointer is then used as argument to the hc() function (which decides
what tab to render as 'active'), but this function failed to check if a
valid cmd was specified and a SEGFAULT would occur. This patch fixes the
issue by introducing a 'fallback-cmd' which specifies what tab to render
as 'active' when no valid cmd is requested.

While at it, we now also keep track of the active repository even if an
invalid cmd was requested since we want to show the error message about
the invalid request in the correct context.

Noticed-by: Robin Redeker &lt;elmex@ta-sa.org&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-shared: specify correct css class for summary tab</title>
<updated>2008-10-06T14:00:42Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-06T14:00:42Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=cb1cc0d82d764051d8376281fcb556153f074c1a'/>
<id>urn:sha1:cb1cc0d82d764051d8376281fcb556153f074c1a</id>
<content type='text'>
When introducing cgit_summary_link() in 49ecbbdd I forgot to specify the
css class. This fixes it.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<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='http://git.cetero.st/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='http://git.cetero.st/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='http://git.cetero.st/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='http://git.cetero.st/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='http://git.cetero.st/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='http://git.cetero.st/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='http://git.cetero.st/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='http://git.cetero.st/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>
</feed>
