From: Honza M. <hon...@ec...> - 2007-03-07 08:15:35
|
Hi Norbert, Strange, it works for us well in php5, so it is probably php4 related problem. Special characters are not quoted (replaced by _AA_* strings) on storing to the database. The text in database is exactly the same, as you type to the form. The special strings we use during displaying (unaliasing) AA string. The unaliasing works this way: Ex: some text {ifset:{_#HEADLINE}:<h1>_#1</h1>} here // say that healdline is "I'm headline (with {brackets})") 1) unalias innermost curly brackets. It is {_#HEADLINE}, so the by unaliasing this we get: Ex: I'm headline (with {brackets}) But we do not want to put such string instead of {_#HEADLINE}, since then would be the inner most curly brackets the {brackets} string. We do not want to unalias inside headline text, so we replace all the control characters by substitutes: Ex: some text {ifset:I'm headline _AA_OpEnPaR_with _AA_OpEnBrAcE_brackets_AA_ClOsEbRaCe__AA_ClOsEpAr_:<h1>_#1</h1>} here 2) Then we continue with standard unaliasing for inner most curly brackets, so we get: Ex: some text <h1>I'm headline _AA_OpEnPaR_with _AA_OpEnBrAcE_brackets_AA_ClOsEbRaCe__AA_ClOsEpAr_</h1> here 3) after all we replace back all the substitutes: Ex: some text <h1>I'm headline (with {brackets})</h1> here See: /include/stringexpand.php3 - function QuoteColons() Honza Norbert Brazda píše v Po 05. 03. 2007 v 19:02 +0100: > After upgrade to latest SVN version of AA (under php 4) I see strange > strings like _AA_CoLoN_ or _AA_OpEnBrAcE_, _AA_ClOsEbRaCe_, > _AA_OpEnPaR_, _AA_ClOsEpAr_ displayed in the text of the articles (in > text fields, text areas, etc.). > > It seems that these special characters - :, (, ), {, } - are quoted when > stored into database but not unqouted before they are displayed in some > cases. E.g. _#HEADLINE is shown correctly but {headline........} or > {_#HEADLINE} is shown without unquoting (i.e. with _AA_...). > > Is that another php 4 bug or is it just "normal" bug? > > > > norbert > br...@ch... > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Apc-aa-coders mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apc-aa-coders > -- |