Note that there are some explanatory texts on larger screens.

plurals
  1. PODealing with "Kill" in large form input
    primarykey
    data
    text
    <p>So James Patterson keeps trying to hack my website! Okay, not really, but he has written quite a few books that have titles starting with "<strong>Kill</strong>" which triggers a <strong>HTTP 501/HTTP 505</strong> from our server side firewall.</p> <p>Here's the situation, our Library Software generates a weekly email report all of the new books added to the collection in the last week. I've made a form (using php/html) where we can C&amp;P this data in and it will transform it into a nice little page showing off our new titles. Once the form is submitted I sanitize the data before it's added to a MySQL database. The "<strong>Kill</strong>" trigger happens before the data from the form can be passed and processed. The data comes in the format:</p> <pre><code>Kill shot : an American assassin thriller / Vince Flynn|Flynn, Vince|2012|9781416595205 (hbk.)|NEWBKSHELF|20120207| </code></pre> <p>I <em>think</em> the way to do this would be a little bit of javascript that changed every instance of <strong>kill</strong> to something innocuous and then change it back when I am inserting it into the MySQL db. </p> <p>However there can be hundreds of entries like the one above, and I'm not very good with javascript, and I'm not sure the how to accomplish the first half of this (eg changing every instance of <strong>kill</strong> to <strong>kxll</strong> and <strong>Kill</strong> to <strong>Kxll</strong>.) I am fairly confident that when I save the data I can safely change <strong>kxll</strong> back.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload