}
elsif ($do eq 'blog') {
my $page=titlepage(decode_utf8($q->param('title')));
+ $page=~s/(\/)/"__".ord($1)."__"/eg; # escape slashes too
# if the page already exists, munge it to be unique
my $from=$q->param('from');
my $add="";
if ($display !~ /\[/) {
$display=~s/^(.*?)\.([^.]+\.[a-z]+)$/$1 [$2]/;
}
+ # Convert "somehost.com/user" to "user [somehost.com]".
+ if ($display !~ /\[/) {
+ $display=~s/^(.+)\/[^\/](.+)$/$2 [$1]/;
+ }
$display=~s!^https?://!!; # make sure this is removed
return "<a href=\"$user\">".escapeHTML($display)."</a>";
}
* If a userdir is configured, links to pages in it can be made without
specifying the path. This allows for easy signing of comments by linking
to your page in the userdir.
+ * Escape shashes in page titles entered in the blog post form.
+ * Munge openids of the form somehost.com/user (trial, may revert)
- -- Joey Hess <joeyh@debian.org> Fri, 29 Dec 2006 00:26:47 -0500
+ -- Joey Hess <joeyh@debian.org> Sun, 31 Dec 2006 15:30:59 -0500
ikiwiki (1.36) unstable; urgency=low
for "user.somehost.com" OpenIDs. I think that same display form
for all OpenIDs is a good idea. What's your opinion?
+> It's probably ok to do this, although there's the potential it might
+> misfire on some url. I've implemented it on a trial basis. --[[Joey]]
+
BTW, Happy New Year for you and Debian 'etch' and all ikiwiki
users! :) --Pawel
>>> Sorry for confusing! I meant two files (directory and page),
>>> instead of one (page).
+>>>> Yep, fixed. --[[Joey]]
+
>>> BTW, I have some problems with singing in using getopenid.com
->>> server, so I also use myopenid.com server :) --Pawel
\ No newline at end of file
+>>> server, so I also use myopenid.com server :) --Pawel
+
+>>>> They were having some glitches last week.. --[[Joey]]