#176 StoryAdmin :: Adding blank story generates php warning

closed-accepted
admin (43)
5
2004-10-19
2003-09-02
tobozo
No

Logged in with storyEditor perms, in storyAdmin.php
created a new story, just clicked on preview without
filling any field, got this message :
Warning: array_key_exists() [function.array-key-exists]:
The second argument should be either an array or an
object in /home/site/class/Story_admin.class on line 880

This could be a security issue (path disclosure).

@array_key_exist() or is_array() could be used to
prevent this.
Additionnally the use of oohforms could be a good thing
to add some javascript validation.

be well

Discussion

  • Joe Stewart

    Joe Stewart - 2004-10-19
    • assigned_to: nobody --> joestewart
    • status: open --> closed-accepted
     
  • Joe Stewart

    Joe Stewart - 2004-10-19

    Logged In: YES
    user_id=77269

    This problem has been corrected in the phpslash-dev CVS. Please
    update your copy of PHPSlash, or wait for the next release.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks