[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

mod_dav_svn GET directory XML missing name?

From: Jerry Haltom <wasabi_at_larvalstage.net>
Date: 2003-07-27 09:19:59 CEST

Not that much of a code monkey, what I noticed is that the web HTML
interface (issuing a GET to a directory), that generates some XML that
is run thru XSL, shows directories with spaces in them as %20.

This is correct, as the attribute being shown is "path". However, I'd
like to display the name of the directory without the %20...

File entries appear with a "name" attribute, so I started looking for
the name attribute of a directory. I found the following in repos.c of
mod_dav_svn on line 1947. It appears the name is being tested, and then
not found, so not included. Why isn't it being found?

if (name)
          ap_fprintf(output, bb, " name=\"%s\"",
                     apr_xml_quote_string(resource->pool, name, 1));

(Yes I realize my style sheet could just replace %20 with a space... but
that would be too easy)

Jerry Haltom

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 27 09:21:07 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.