Menu

#14 Added Backslashes

Next Release
closed
nobody
None
5
2019-02-04
2012-10-29
No

When saving edited files, or likely any other user content, PHPFM needs to check for the "magic quotes" PHP configuration, which adds backslashes to any submitted data. These backslashes can break files when saved, and should be removed if it is set. This could be done like this:

if(get_magic_quotes_gpc())
$string = stripslashes($string);

There is also an issue with filenames that include single quotes (apostrophes). I don't know if this issue is related.

Discussion

  • Fabrício Seger Kolling

    hi! i'm familiar with this situation, and many more, reported by the users along the years. i will check it out for the next version.

    that problem with the scrollbars on chrome was coused by an unhandled event, something that would not happen with jquery, because it was written with old standarts, before chrome was even around, when you had an IF to every bug on every browser, i will keep the code that way for educational propouses, just html+javascript. heheh

     
  • Fabrício Seger Kolling

    • status: open --> open-fixed
    • Group: --> v1.0_(example)
     
  • Fabrício Seger Kolling

    • status: open-fixed --> closed
     

Log in to post a comment.