Check out Glinski's Hexagonal Chess, our featured variant for May, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Trouble making submissions[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Sat, Mar 12, 2016 05:30 PM UTC:
Your page and msdisplay.php were both last updated a month ago, but
display_user_submission.php was last updated on March 4th. I just modified
this by commenting out each line that applied reverse_htmlentities() to one
of the page content strings, and it fixed your page. I'm not sure why the
code uses this function or how this could affect other pages. I do recall
seeing code for converting page content strings to htmlentities before
writing them to the database, and maybe this was for keeping the SQL string
from being corrupt. But now that I switched the code for writing user
submissions to the database over to PDO with prepared statements, that's no
longer an issue, and I removed the code for converting strings to
htmlentities before writing the SQL string.