Jump to content

ClientEdit hook - run first and then stop all functions after


joelie

Recommended Posts

Hi all,

 

I have a function that runs on the hook point ClientEdit. I want the function to run first before any other function, and then stop all subsequent functions that WHMCS carries out after it has run if the function returns true.

 

Basically, I've written a function that checks all post variables for specific SQL injection attempts. Using the hook, I'm able to check if an attempt has occurred however the rest of the WHMCS functions continue afterwards, which negates the whole point of checking for SQL Injection as I can't stop it (other than remove the key value).

 

I don't want to remove the key value, rather just not update the actual clients fields at all.

 

Is it possible?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated