Gavin (halkeye) wrote in lj_dev,
Gavin
halkeye
lj_dev

poll bug?

in ljpoll.pl on like 97 we have: $qopts{'type'} = $opts->{'type'};
then we have the parts the vertify the scale and text parts

but on like 154, we have $qopts{'type'} = lc($opts->{'type'}) || "text";
I'm assuming the first bit really just sets $qopts{'type'} so the vertifying will work.
But, the second instance makes the type lowercase to check if it is a valid type. thus allowing things like type=Scale in, but not working..
At least thats what my limited perl knowledge has figured out...

Just trying to figure out why the type=scale will work, but type=Scale wont, while type=Radio does as well as type=radio

Yea, from what i can see, the defaults are set before type= is lowercased, so type=Text shouldn't really work either. Its not really a big deal, just thought i'd let people know.
Subscribe

  • cl-journal livejournal client

    Hey everyone, I'd like to present a livejournal client that I wrote to fulfill my needs but maybe there are other people that can find it…

  • SessionGenerate and ljloggedin

    Are there any information after release 86 and changes in cookies scheme to use sessiongenerate? It returns ljsession key, but this key is not enough…

  • Retrieving comments

    Hi, Is there a way to retrieve a list of comments made by user XXX (which may or may be not the currently logged in user) in the journals of users…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 6 comments