<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/gitweb, branch v1.7.7.4</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.7.7.4</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.7.7.4'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2011-11-09T00:26:50Z</updated>
<entry>
<title>Merge branch 'jm/maint-gitweb-filter-forks-fix' into maint</title>
<updated>2011-11-09T00:26:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-11-09T00:26:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=1a61a9dae874cac9ea40ac63f8fd662f62eee97e'/>
<id>urn:sha1:1a61a9dae874cac9ea40ac63f8fd662f62eee97e</id>
<content type='text'>
* jm/maint-gitweb-filter-forks-fix:
  gitweb: fix regression when filtering out forks
</content>
</entry>
<entry>
<title>Merge branch 'jn/gitweb-highlite-sanitise' into maint</title>
<updated>2011-10-26T23:13:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-26T23:13:31Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=25f745fbec0e92a29e33aa85413c2bf7762608bf'/>
<id>urn:sha1:25f745fbec0e92a29e33aa85413c2bf7762608bf</id>
<content type='text'>
* jn/gitweb-highlite-sanitise:
  gitweb: Strip non-printable characters from syntax highlighter output
</content>
</entry>
<entry>
<title>Merge branch 'maint-1.7.6' into maint</title>
<updated>2011-10-26T23:13:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-26T23:13:27Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=f0911b996cac9b89b9175676f74bbcb5a9a9e34f'/>
<id>urn:sha1:f0911b996cac9b89b9175676f74bbcb5a9a9e34f</id>
<content type='text'>
* maint-1.7.6:
  notes_merge_commit(): do not pass temporary buffer to other function
  gitweb: Fix links to lines in blobs when javascript-actions are enabled
  mergetool: no longer need to save standard input
  mergetool: Use args as pathspec to unmerged files
  t9159-*.sh: skip for mergeinfo test for svn &lt;= 1.4
  date.c: Support iso8601 timezone formats
  remote: only update remote-tracking branch if updating refspec
  remote rename: warn when refspec was not updated
  remote: "rename o foo" should not rename ref "origin/bar"
  remote: write correct fetch spec when renaming remote 'remote'
</content>
</entry>
<entry>
<title>Merge branch 'ps/gitweb-js-with-lineno' into maint-1.7.6</title>
<updated>2011-10-26T23:12:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-26T23:12:35Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=58f75bcf323e86067147ac66bbb493e6a8c2631f'/>
<id>urn:sha1:58f75bcf323e86067147ac66bbb493e6a8c2631f</id>
<content type='text'>
* ps/gitweb-js-with-lineno:
  gitweb: Fix links to lines in blobs when javascript-actions are enabled
</content>
</entry>
<entry>
<title>gitweb: fix regression when filtering out forks</title>
<updated>2011-10-21T21:46:38Z</updated>
<author>
<name>Julien Muchembled</name>
<email>jm@jmuchemb.eu</email>
</author>
<published>2011-10-21T19:04:21Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=53c632faab0be2e8510a678a4b7dfa01dc7f41e1'/>
<id>urn:sha1:53c632faab0be2e8510a678a4b7dfa01dc7f41e1</id>
<content type='text'>
This fixes a condition in filter_forks_from_projects_list that failed if
process directory was different from project root: in such case, the subroutine
was a no-op and forks were not detected.

Signed-off-by: Julien Muchembled &lt;jm@jmuchemb.eu&gt;
Tested-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Fix links to lines in blobs when javascript-actions are enabled</title>
<updated>2011-09-27T16:34:37Z</updated>
<author>
<name>Peter Stuge</name>
<email>peter@stuge.se</email>
</author>
<published>2011-09-27T09:51:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=2b07ff3ffa04a3d52bb4aec9df9f8b6378e2f2a7'/>
<id>urn:sha1:2b07ff3ffa04a3d52bb4aec9df9f8b6378e2f2a7</id>
<content type='text'>
The fixLinks() function adds 'js=1' to each link that does not already
have 'js' query parameter specified. This is used to signal to gitweb
that the browser can actually do javascript when these links are used.

There are two problems with the existing code:

  1. URIs with fragment and 'js' query parameter, like e.g.

        ...foo?js=0#l199

     were not recognized as having 'js' query parameter already.

  2. The 'js' query parameter, in the form of either '?js=1' or ';js=1'
     was appended at the end of URI, even if it included a fragment
     (had a hash part).  This lead to the incorrect links like this

        ...foo#l199?js=1

     instead of adding query parameter as last part of query, but
     before the fragment part, i.e.

        ...foo?js=1#l199

Signed-off-by: Peter Stuge &lt;peter@stuge.se&gt;
Acked-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Strip non-printable characters from syntax highlighter output</title>
<updated>2011-09-16T16:22:47Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2011-09-16T12:41:57Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=0866786b80aa921576ab4e7474c91207111f970f'/>
<id>urn:sha1:0866786b80aa921576ab4e7474c91207111f970f</id>
<content type='text'>
The current code, as is, passes control characters, such as form-feed
(^L) to highlight which then passes it through to the browser.  User
agents (web browsers) that support 'application/xhtml+xml' usually
require that web pages declared as XHTML and with this mimetype are
well-formed XML.  Unescaped control characters cannot appear within a
contents of a valid XML document.

This will cause the browser to display one of the following warnings:

* Safari v5.1 (6534.50) &amp; Google Chrome v13.0.782.112:

   This page contains the following errors:

   error on line 657 at column 38: PCDATA invalid Char value 12
   Below is a rendering of the page up to the first error.

* Mozilla Firefox 3.6.19 &amp; Mozilla Firefox 5.0:

   XML Parsing Error: not well-formed
   Location:
   http://path/to/git/repo/blah/blah

Both errors were generated by gitweb.perl v1.7.3.4 w/ highlight 2.7
using arch/ia64/kernel/unwind.c from the Linux kernel.

When syntax highlighter is not used, control characters are replaced
by esc_html(), but with syntax highlighter they were passed through to
browser (to_utf8() doesn't remove control characters).

Introduce sanitize() subroutine which strips forbidden characters, but
does not perform HTML escaping, and use it in git_blob() to sanitize
syntax highlighter output for XHTML.

Note that excluding "\t" (U+0009), "\n" (U+000A) and "\r" (U+000D) is
not strictly necessary, atleast for currently the only callsite: "\t"
tabs are replaced by spaces by untabify(), "\n" is stripped from each
line before processing it, and replacing "\r" could be considered
improvement.

Originally-by: Christopher M. Fuhrman &lt;cfuhrman@panix.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>
<entry>
<title>Merge branch 'jn/mime-type-with-params' into maint</title>
<updated>2011-08-16T18:41:26Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-08-16T18:41:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=5329c99795e187b36a527baa883efe5c3dc2f98c'/>
<id>urn:sha1:5329c99795e187b36a527baa883efe5c3dc2f98c</id>
<content type='text'>
* jn/mime-type-with-params:
  gitweb: Serve */*+xml 'blob_plain' as text/plain with $prevent_xss
  gitweb: Serve text/* 'blob_plain' as text/plain with $prevent_xss
</content>
</entry>
<entry>
<title>Merge branch 'jn/gitweb-config-list-case'</title>
<updated>2011-08-08T19:33:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-08-08T19:33:35Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=2728139a627dced09d47ec6927d4e8cf1dddc7d6'/>
<id>urn:sha1:2728139a627dced09d47ec6927d4e8cf1dddc7d6</id>
<content type='text'>
* jn/gitweb-config-list-case:
  gitweb: Git config keys are case insensitive, make config search too
</content>
</entry>
<entry>
<title>Merge branch 'jn/gitweb-system-config'</title>
<updated>2011-08-08T19:33:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-08-08T19:33:34Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=86bd7f99892238d36c62c18477ea360037ac19dc'/>
<id>urn:sha1:86bd7f99892238d36c62c18477ea360037ac19dc</id>
<content type='text'>
* jn/gitweb-system-config:
  gitweb: Introduce common system-wide settings for convenience
</content>
</entry>
</feed>
