]> Lady’s Gitweb - Shushe/blobdiff - lib/archive2extractor.xslt
Disallow archive paths beginning with `/`
[Shushe] / lib / archive2extractor.xslt
index b5fb70322239a63d16bb989c839723afe9493f7f..d43be68573892f016ca11998c03b6caacd3caf2b 100644 (file)
@@ -25,7 +25,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                        version="1.0"
                >
                        <xslt:template match="/">
-                               <for-each select="书社:archive/*[@书社:archived-as and not(starts-with(@书社:archived-as, '../') or contains(@书社:archived-as, '/../'))]">
+                               <for-each select="书社:archive/*[@书社:archived-as and not(starts-with(@书社:archived-as, '../') or starts-with(@书社:archived-as, '/') or contains(@书社:archived-as, '/../'))]">
                                        <variable name="href">
                                                <text>./extracted/</text>
                                                <choose>
This page took 0.021682 seconds and 4 git commands to generate.