<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/gitweb/gitweb.perl, branch v1.6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-07-13T18:09:02Z</updated>
<entry>
<title>gitweb: update Git homepage URL</title>
<updated>2009-07-13T18:09:02Z</updated>
<author>
<name>Wincent Colaiuta</name>
<email>win@wincent.com</email>
</author>
<published>2009-07-12T12:31:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=69fb8283937a18a031aeef12ea2a530c8ccf3e83'/>
<id>urn:sha1:69fb8283937a18a031aeef12ea2a530c8ccf3e83</id>
<content type='text'>
git-scm.com is now the "official" Git project page, having taken over
from git.or.cz, so update the default link accordingly. This saves a
redirect when people hit git.or.cz.

Signed-off-by: Wincent Colaiuta &lt;win@wincent.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: add empty alt text to avatar img</title>
<updated>2009-06-30T18:06:37Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2009-06-29T22:00:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7d25ef41c84850ec1405400efc95d78fa6523efc'/>
<id>urn:sha1:7d25ef41c84850ec1405400efc95d78fa6523efc</id>
<content type='text'>
The empty alt text optimizes screen estate in text-only browsers.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: picon avatar provider</title>
<updated>2009-06-30T18:06:36Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2009-06-29T22:00:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=679a1a1d420616be1647bdf8b2e93f1f86c7bdae'/>
<id>urn:sha1:679a1a1d420616be1647bdf8b2e93f1f86c7bdae</id>
<content type='text'>
Simple implementation of picon that only relies on the indiana.edu
database.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: gravatar url cache</title>
<updated>2009-06-30T18:06:36Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2009-06-29T22:00:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5a371b7bbbffeddfb356b327995a95cf7bae71d5'/>
<id>urn:sha1:5a371b7bbbffeddfb356b327995a95cf7bae71d5</id>
<content type='text'>
Views which contain many occurrences of the same email address (e.g.
shortlog view) benefit from not having to recalculate the MD5 of the
email address every time.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: (gr)avatar support</title>
<updated>2009-06-30T18:06:35Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2009-06-29T22:00:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e9fdd74e5374dd1efe1577057d14a2836b4cae78'/>
<id>urn:sha1:e9fdd74e5374dd1efe1577057d14a2836b4cae78</id>
<content type='text'>
Introduce avatar support: the feature adds the appropriate img tag next
to author and committer in commit(diff), history, shortlog, log and tag
views. Multiple avatar providers are possible, but only gravatar is
implemented at the moment.

Gravatar support depends on Digest::MD5, which is a core package since
Perl 5.8. If gravatars are activated but Digest::MD5 cannot be found,
the feature will be automatically disabled.

No avatar provider is selected by default, except in the t9500 test.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: use git_print_authorship_rows in 'tag' view too</title>
<updated>2009-06-30T18:06:34Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2009-06-29T22:00:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ba9247339dfbd2c2671603e012d011b4b474fa4b'/>
<id>urn:sha1:ba9247339dfbd2c2671603e012d011b4b474fa4b</id>
<content type='text'>
parse_tag must be adapted to use the hash keys expected by
git_print_authorship_rows. This is not a problem since git_tag is the
only user of this sub.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: uniform author info for commit and commitdiff</title>
<updated>2009-06-30T18:06:32Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2009-06-29T22:00:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f88bafadd9b2562a0cd2500c5a9669d3741243b5'/>
<id>urn:sha1:f88bafadd9b2562a0cd2500c5a9669d3741243b5</id>
<content type='text'>
Switch from 'log'-like layout

    A U Thor &lt;email@example.com&gt; [date time]

to 'commit'-like layout

    author    A U Thor &lt;email@example.com&gt;
              date time
    committer C O Mitter &lt;other.email@example.com&gt;
              committer date time

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: refactor author name insertion</title>
<updated>2009-06-30T18:06:30Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2009-06-29T22:00:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1c49a4e1f324dcaa000ce92ed44d0e5b9eb16843'/>
<id>urn:sha1:1c49a4e1f324dcaa000ce92ed44d0e5b9eb16843</id>
<content type='text'>
Collect all author display code in appropriate functions, making it
easier to extend these functions on the CGI side.

We also move some of the presentation code from hard-coded HTML to CSS,
for easier customization.

A side effect of the refactoring is that now localtime is always
displayed with the 'at night' warning.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jn/gitweb-cleanup'</title>
<updated>2009-05-23T08:44:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-05-23T08:44:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7f5a68ad4d0e00eb2f28405946ec0f2691d7ad81'/>
<id>urn:sha1:7f5a68ad4d0e00eb2f28405946ec0f2691d7ad81</id>
<content type='text'>
* jn/gitweb-cleanup:
  gitweb: Remove unused $hash_base parameter from normalize_link_target
  gitweb: Simplify snapshot format detection logic in evaluate_path_info
  gitweb: Use capturing parentheses only when you intend to capture
  gitweb: Replace wrongly added tabs with spaces
  gitweb: Use block form of map/grep in a few cases more
  gitweb: Always use three argument form of open
  gitweb: Always use three argument form of open
  gitweb: Do not use bareword filehandles
</content>
</entry>
<entry>
<title>gitweb: Sanitize title attribute in format_subject_html</title>
<updated>2009-05-22T16:26:54Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2009-05-22T15:35:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14afe77486281e411bfadd131e5c8ffc44e22a26'/>
<id>urn:sha1:14afe77486281e411bfadd131e5c8ffc44e22a26</id>
<content type='text'>
Replace control characters with question mark '?' (like in
chop_and_esc_str).

A little background: some web browsers turn on strict (and
unforgiving) XML validating mode for XHTML documents served using
application/xhtml+xml content type.  This means among others that
control characters are forbidden to appear in gitweb output.

CGI.pm does by default slight escaping (using simple_escape subroutine
from CGI::Util) of all _attribute_ values (depending on the value of
autoEscape, by default on).  This escaping, at least in CGI.pm version
3.10 (most current version at CPAN is 3.43), is minimal: only '"',
'&amp;', '&lt;' and '&gt;' are escaped using named HTML entity references
(&amp;quot;, &amp;amp;, &amp;lt; and &amp;gt; respectively).  But simple_escape does
not do escaping of control characters such as ^X which are invalid in
XHTML (in strict mode).

If by some accident commit message do contain some control character
in first 50 characters (more or less) of first line of commit message,
and this line is longer than 50 characters (so gitweb shortens it for
display), then gitweb would put this control character in title
attribute (and CGI.pm would not remove them).  The tag _contents_ is
safe because it is escaped using esc_html() explicitly, and it
replaces control characters by their printable representation.

While at it: chop_and_escape_str doesn't need capturing group.

Noticed-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
