Re: yet more suggestions for .73...

"Luis M" <[email protected]> Sun, 11 May 2003 17:24:22 -0400
Newsgroups gmane.comp.cms.phpslash.devel
Message-ID <[email protected]>
Hello,
Read...

<snip>

>I have tried this with the current CVS (and current php-lib-stable cvs)
>using both the nobody user / submission page and as a root user using the
>story admin page and cannot replicate this behavior using extrans, html
>or plaintext formats using Safari-b2.

I'm using phpslash 0.71 with the latest Mozilla 1.3 build for debian 
unstable.

>
>Please, what versions of phpslash, phplib and php are you running?  Does
>the above exmaple work exactly as you describe under your environment?
>Can you take a screengrab of whhat you enter into the page and what the
>preview looks like?  Can you send me the extact text that caused this?

phplib that came with the phpslash 0.71 release. (phplib 0.7d ? ). php 4.3 
and php 4.1.2 both do exactly the same (two different instalations).

>
> > The {td} part of the hashes will mess up the article badly when 
>previewing.
> > In fact, the whole page gets mumble with all kinds of crazy things. What 
>I
> > do to fix that is adding spaces between the curly-braces.
> >
>
>Clearly that should not happen.
>
> > I don't think this affects the server directly, nor have I try to inject 
>any
> > type of code to the database. In other words, I'm assuming this cannot 
>be
> > done and have not tried. In any case, only the users with Admin rights 
>can
> > add news to the site. So, nothing to worry (right?).
> >
>
>If this is a real bug, it may also affect the submission.php page...
>
> > However, I believe that the stories (the text coming from the database 
>to be
> > displayed as stories) should not be parse as if it was a template or as 
>if
> > dynamic PHP code was coming from the database... That could create 
>problems.
> > (It creates problems for people who have sites publishing code, as I do 
>:-)
>
>The input stuff should clean() the text before it even gets to the
>database.  the {} construct is also the same for phplib tempalte
>plcasehoder, AFIK, things that look like {foo} get removed during parsing
>by the template system and should be additionally fixed by the submission
>and story classes.  Joe probably knows how this works off the top of his
>head..

The code I'm trying to publish is here:
ftp://ftp.latinomixed.com/downloads/pixdir2html.pl.gz

The only thing I did to that code was to run "cat -n" and save this as a 
.txt file with line numbers like this:
gunzip pixdir2html.pl.gz
cat -n pixdir2html.pl > pixdir2html.pl.txt

And then try to use the resulting .txt file to make a new story.

I placed a screenshot of a preview story here:
http://www.latinomixed.com/story-preview-screenshot.jpg

Note that this screenshot shows only the first page of the page, the page is 
a lot longer than this, and it's all garble all the way up to the end. Let 
me know if you want to see more of the screen so that I can make more 
screenshots.

----)(-----
Luis Mondesi
System Administrator
LatinoMixed.com

[email protected]

"...The Mac does this so smoothly, it feels like an extension of your mind." 
- Paula Speer, MacWorld Magazine 2003-04

Public signature: http://www.latinomixed.com/lems1/public-a.asc

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous ! 
http://search.msn.fr/worldwide.asp



-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com