Date: Sunday June 16, 2002 @ 14:26
Author: matt
Update of /home/cvs/AxKit-XSP-Wiki/webstuff
In directory ted.sergeant.org:/home/matt/Perl/AxKit-XSP-Wiki/webstuff
Modified Files:
pod.xsl view wiki.xsl
Log Message:
Misc bug fixes
Log:
PR:
Index: pod.xsl
===================================================================
RCS file: /home/cvs/AxKit-XSP-Wiki/webstuff/pod.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -u -r1.1 -r1.2
--- pod.xsl 2002/06/14 08:07:27 1.1
+++ pod.xsl 2002/06/16 13:26:33 1.2
@@ -24,7 +24,7 @@
</xsl:template>
<xsl:template match="head1">
- <h1><xsl:apply-templates/></h1>
+ <h1><a name="{.}"><xsl:apply-templates/></a></h1>
</xsl:template>
<xsl:template match="head2">
Index: view
===================================================================
RCS file: /home/cvs/AxKit-XSP-Wiki/webstuff/view,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -u -r1.1 -r1.2
--- view 2002/06/14 08:07:27 1.1
+++ view 2002/06/16 13:26:33 1.2
@@ -12,7 +12,7 @@
my ($db, $page) = ('AxKit', 'DefaultPage');
if ($path_info) {
- ($db, $page) = ($path_info =~ m|^/([A-Z]+)/([A-Z]+)|gi);
+ ($db, $page) = ($path_info =~ m|^/([A-Z]+)/([A-Z:_]+)|gi);
if (!$db) {
die "Invalid path_info: $path_info";
}
@@ -21,7 +21,7 @@
die "Invalid path_info: $path_info";
}
- if ($page !~ /^[A-Z]+$/i) {
+ if ($page !~ /^[A-Z:_]+$/i) {
die "Invalid page name: $page";
}
}
@@ -38,7 +38,7 @@
$dbroot, $db, $page,
$cgi->param('text'),
);
- $r->header_out(Location => "$page");
+ $r->header_out(Location => "./$page");
return 302;
}
Index: wiki.xsl
===================================================================
RCS file: /home/cvs/AxKit-XSP-Wiki/webstuff/wiki.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -u -r1.1 -r1.2
--- wiki.xsl 2002/06/14 08:07:27 1.1
+++ wiki.xsl 2002/06/16 13:26:33 1.2
@@ -22,7 +22,7 @@
<xsl:choose>
<xsl:when test="$action='view'">
<hr/>
- <a href="?action=edit">Edit This Page</a>
+ <a href="./{/wiki/page}?action=edit">Edit This Page</a>
</xsl:when>
<xsl:when test="$action='edit'">
<p><a href="EditTips">EditTips</a></p>
@@ -31,7 +31,6 @@
Other Mode?
</xsl:otherwise>
</xsl:choose>
-
</body>
</html>
@@ -45,7 +44,7 @@
</xsl:template>
<xsl:template match="edit">
-<form action="{/wiki/page}" method="POST">
+<form action="./{/wiki/page}" method="POST">
<input type="hidden" name="action" value="save"/>
<h1><xsl:value-of select="/wiki/page"/> :
<input type="submit" value=" Save "/></h1>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]