Menu

Problem with submitting kills - solved

akirhol
2006-11-03
2013-04-19
  • akirhol

    akirhol - 2006-11-03

    It doesn't seem this was a common problem as it hasn't been found/fixed or posted about yet... what was happening was everytime I submitted a kill that had a single quote ('), it would write to all the applicable tables except the kill table. Couple debug lines and I found the problem in parser.php:

    $parsedMail = $_POST['textarea'];

    This appears before building the $sql var for the kill table, which includes $parsedMail... because the mail contains single quotes, it was turning the query into garbage as far as the server was concerned. Changed the line this:

    $parsedMail = addslashes($_POST['textarea']);

    Simple fix, I'm sure it's the host I'm using that is the cause of this seemingly uncommon problem, but I would assume it's a modification that you [geoffw22] would like to make to the source.

    Cheers, and thanks for the continued work and support on this board.

     
    • DrAether

      DrAether - 2006-11-10

      Thanks for the code mod/fix, that has solved a problem I've encountered a few times. I just didn't know enough about php to solve it :)

       

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.