Re: svn commit: r40008 - trunk/subversion/mod_dav_svn

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.subversion.rapidsvn.devel,gmane.comp.version-control.subversion.svn
Organization CollabNet, Inc.
Message-ID <4AD5CA1A.1090102__27027.3926239044$1255524959$gmane$org@collab.net>
Senthil Kumaran S wrote:
> Author: stylesen
> Date: Wed Oct 14 01:52:15 2009
> New Revision: 40008

[...]

> Modified: trunk/subversion/mod_dav_svn/repos.c
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/mod_dav_svn/repos.c?pathrev=40008&r1=40007&r2=40008
> ==============================================================================
> --- trunk/subversion/mod_dav_svn/repos.c	Wed Oct 14 00:47:26 2009	(r40007)
> +++ trunk/subversion/mod_dav_svn/repos.c	Wed Oct 14 01:52:15 2009	(r40008)
> @@ -3374,12 +3374,17 @@ deliver(const dav_resource *resource, ap
>  
>        svn_pool_destroy(entry_pool);
>  
> -      if (gen_html)
> -        ap_fputs(output, bb,
> -                 " </ul>\n <hr noshade><em>Powered by "
> -                 "<a href=\"http://subversion.tigris.org/\">Subversion</a> "
> -                 "version " SVN_VERSION "."
> -                 "</em>\n</body></html>");
> +      if (gen_html
> +          && (strcmp(ap_psignature("FOO", resource->info->r), "") != 0))
> +        {
> +          /* Apache's signature generation code didn't eat our prefix.
> +             ServerSignature must be enabled.  Print our version info.  */

Please add something like this to the comment above:

  WARNING:  This is a kludge!!  ap_psignature() doesn't promise to return
  the empty string when ServerSignature is off.  We know it does by code
  inspection, but this behavior is subject to change.  (Perhaps we should
  try to get the Apache folks to make this promise, though...)

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=495&dsMessageId=2407529
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrVyhoACgkQokEGqRcG/W7p3wCeMsYZVpqnshcO5gj5jqjDS/J4
PqoAn3Nj9DUUOfCyfCttd2uXgbDYM8AK
=JaNW
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.