Jump to content

Client Area files UUID instead of AUTO_INCREMENT


viaBowl

Recommended Posts

Hi guys,

 

I wrote a little trigger to change the autoincrement id to a 36 character UUID. This is because I have three specific URL rewrites setup for my clients' convenience:

 

https://mywhmcs.tld/files/<FILE ID> (which is now a UUID)

https://mywhmcs.tld/quote/<QUOTE ID>

https://mywhmcs.tld/invoice/<INVOICE ID>

 

The problem is... that dl.php is PROBABLY not written to sanitize (or whatever) a 36 character string. Since the file is encoded, can someone point me in the right direction?

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