Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2007-12-04 14:42:08


Author: fmhess
Date: 2007-12-04 14:42:08 EST (Tue, 04 Dec 2007)
New Revision: 41696
URL: http://svn.boost.org/trac/boost/changeset/41696

Log:
Make sure output filenames don't include any illegal characters.

Text files modified:
   trunk/tools/boostbook/xsl/chunk-common.xsl | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/tools/boostbook/xsl/chunk-common.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/chunk-common.xsl (original)
+++ trunk/tools/boostbook/xsl/chunk-common.xsl 2007-12-04 14:42:08 EST (Tue, 04 Dec 2007)
@@ -27,7 +27,8 @@
     <xsl:variable name="basename" select="substring-before( $their, $html.ext )"/>
     <xsl:choose>
         <xsl:when test="not($recursive)">
- <xsl:value-of select="translate( $basename, '.', '/' )"/>
+ <!-- translate dots into directory separators, and replace illegal file path characters with underscores -->
+ <xsl:value-of select="translate( $basename, '.&lt;&gt;\:*?&quot;|', '/_______' )"/>
             <xsl:value-of select="$html.ext"/>
         </xsl:when>
         <xsl:otherwise>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk