• Resolved jcmiz

    (@jcmiz)


    Hi, I’m using your plugin and I’ve found a glitch that is preventing me from adding entries to the form I created. I’m using one of the fields on my form to store a URL that includes the ‘#’ symbol in it. When I try to add an entry with this URL it doesn’t work. When I hit submit the page refreshes without recording the entry. However, if I remove the ‘#’ symbol from the URL and keep everything else exactly the same the entry is added to the form just as it should be.

    Will you please update the plugin code to fix this bug? Otherwise I won’t be able to use it.

    Thanks in advance!

    Jon

    https://ww.wp.xz.cn/plugins/custom-searchable-data-entry-system/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ghazale

    (@ghazale)

    @jcmiz
    Hi Jon,

    It’s actually because I’ve made strict rules for entering data to database in order to limit the risk of attack as much as possible. But you can easily modify it to let it accept # sign. Just follow below instructions:

    1. Look at your plugins list on your Admin dashboard, find Custom searchable Data Entry System plugin and click on the “Edit” link that you see below it.
    2. Make sure you’re viewing “sds-main.php”
    3. Find line 234, where it looks like below:
    4. return !preg_match('/[^\w\p{L}\p{N}\p{Pd} @-_.,\/:?!;&~()\'\n\r]/u', $string);
    5. Add # to the symbols in that line of code. So that line of code will look like this:
    6. return !preg_match('/[^\w\p{L}\p{N}\p{Pd} @#-_.,\/:?!;&~()\'\n\r]/u', $string);
    7. Press “Update File”.
    8. You may need to reactivate the plugin.

    That’s it! If there’s anything else that I can help you with, feel free to contact me.

    Cheers;
    Ghazale

    Thread Starter jcmiz

    (@jcmiz)

    That worked like a charm, thanks for the quick response!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Glitch when entry includes a '#' symbol’ is closed to new replies.