[dev] Re: [cvs] commit: horde/lib Text.php
Jan Schneider
jan at horde.org
Thu Dec 19 21:29:56 PST 2002
Zitat von Jan Schneider <jan@horde.org>:
> Zitat von Michael M Slusarz <slusarz@bigworm.colorado.edu>:
>
> > slusarz 2002/12/19 12:00:56 PST
> >
> > Modified files:
> > lib Text.php
> > Log:
> > Check for invalid character set in toHTML() - this was where Horde
> was
> > crashing when an invalid character set was used in a message in IMP.
> > Namely,
> > the preg_replace() function was crashing because the
> htmlspecialchars()
> > call
> > in its paramater list was returning a warning.
>
> As checkCharst() calls htmlspecialchars() anyway, wouldn't it make sense
> to
> return the result so it doesn't have to called twice anywhere we use it.
> It should move to Horde:: then, perhaps as Horde::specialChars() and
> taking
> the quote style as an extra argument.
The doesn't make sense. We can call toHtml() with TEXT_HTML_NOHTML_NOBREAK
to achieve the same.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the dev
mailing list