#14 Use of a "&" in file name fails to gen thumb

closed-accepted
None
5
2005-11-12
2005-11-06
Anonymous
No

If you use a & symbol in the file name it will fail to gen
the tumb and prevent access to the file.

Discussion

  • JiM / aEGIS

    JiM / aEGIS - 2005-11-12

    Logged In: YES
    user_id=879481

    This is because of the security check performed on variables
    which is too restrictive.

    To allow & in filename, edit the file
    include/yorsh-variablevalidation-data.inc.php and change the
    regular expression for "path" and "filename" (Line 308, 313).

    Replace:
    pregex' => '/^[\w\.,\/\[\]\ \'-]{0,255}$/
    by
    pregex' => '/^[\w\.,\/\[\]\ \'\&-]{0,255}$/

     
  • JiM / aEGIS

    JiM / aEGIS - 2005-11-12
    • assigned_to: nobody --> jimpower
    • status: open --> closed-accepted
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks