This page has moved


This page can now be found on the Wikka Documentation Server.
Thanks for updating your bookmarks!

An archive of old revisions of this page is still available for reference.

 


CategoryMigratedDocs
Comments
Comment by MasinAlDujaili
2006-09-28 08:39:25
Well, after having used this feature for a while I wondered, when the last character of a word was truncated. Example: These are always the same word Einfluß:
Einfluß
"Einflu"
'Einfluß'

also happens with äöü ...

It seems to have something to do with double qoutes, but I cannot imagine what. Maybe someone will have a look at it.
Comment by MasinAlDujaili
2006-09-28 09:14:56
My best guess is at the moment, that calling
$output = htmlspecialchars($text,$quote_style,$charset);
// "repair" escaped entities
// modifiers: s = across lines, i = case-insensitive
$output = preg_replace('/'.$escaped_entity.'/s'.$ignore_case,"&$1;",$output);
in htmlspecialchars_ent() (lines 222ff., file wakka.class.php) does something incredibly awful to my text :-). I currently try to understand what this function does.

Obviously, the error appears whenever one of the characters that is to be replaced by htmlspecialchars() directly follows some special letter like äáàâéèêîìíöóòôüùûß (incomplete list).

Is this bug already known?
Comment by BrianKoontz
2006-09-28 13:10:30
Changing the default argument $quote_style in the function declaration to ENT_NOQUOTES (on my test server) seems to resolve the problem. But I don't know what impact this would have security-wise on the function itself...like you, I need to delve into this a bit more deeply and see what's going on. Why don't you create a ticket for this?
Comment by MasinAlDujaili
2006-09-28 14:23:01
Because I wait for one of the devs to say "Hey, we already know of this bug!". But I'll make a ticket nonetheless, they still can make it a duplicate ...
Comment by BrianKoontz
2006-09-28 15:01:33
Well, since I'm now one of "them," I'll take the hits if the bug has already been reported :)

But please do a quick search first to make sure it hasn't been reported already.
Comment by DaC
2007-01-16 08:10:06
Is there any way to show comments by default to non-registered users? I would like Google & Co indexing the pages WITH comments automatically. And not via the ?show_comments=1 link as this is a separate page which produces a significant amount of duplicate content.

I searched the Wiki but did not find any usefull info. It can be changed for each users but not for the guest user (e.g. not registered user).
Comment by MasinAlDujaili
2007-01-16 08:30:53
DaC, have you tried the configuration option "hide_comments" in wikka.config.php? Set it to 0 and the comments should be shown by default, I might guess.
Comment by DaC
2007-01-16 18:25:00
It is already set to 0. Comments are not shown by default for guests. Still have to click the "show comments"-link.
Comment by DarTar
2007-01-17 03:29:53
Check in your user preferences if "Show comments by default" is selected.
Comment by DaC
2007-01-17 06:07:24
How can I set it for the **guest** account (e.g. not registered users)?
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki