editpage: Avoid inheriting internal page types.

master
Joey Hess 2011-02-01 21:01:26 -04:00
parent 07ec137238
commit b752e7fec4
3 changed files with 10 additions and 1 deletions

View File

@ -131,7 +131,8 @@ sub cgi_editpage ($$) {
# favor the type of linking page
$type=pagetype($pagesources{$from});
}
$type=$config{default_pageext} unless defined $type;
$type=$config{default_pageext}
if ! defined $type || $type=~/^_/; # not internal type
$file=newpagefile($page, $type);
if (! $form->submitted) {
$form->field(name => "rcsinfo", value => "", force => 1);

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ikiwiki (3.20110125) UNRELEASED; urgency=low
* editpage: Avoid inheriting internal page types.
-- Joey Hess <joeyh@debian.org> Tue, 01 Feb 2011 21:00:57 -0400
ikiwiki (3.20110124) unstable; urgency=low
* comments: Fix commenting, broken by security fix.

View File

@ -5,3 +5,5 @@ as a comment, with "._comment" extension.
This is very surprising and wrong behavior. The page editor tries to
preserve the linking page's format type, but it shouldn't do so if the page
is an internal page. --[[Joey]]
[[done]] --[[Joey]]