Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

urlencode passwords with XMLAPI createacct?

Discussion in 'General Discussion' started by coppershadow, Jul 7, 2008.

  1. coppershadow

    coppershadow Member

    Joined:
    Aug 29, 2007
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    51
    I'm assuming I should url encode the XMLAPI createacct password parameter. Is this correct? The online docs don't make mention of it.

    For example, what if someone uses a space character, plus sign or ampersand in their password? At this point I think it might be simpler on my part to restrict the character set as part of my form processing prior to calling the API. I'd like to hear what others have done.

    Thanks,
    Brian
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You do not need to encode parameters to API function calls. If you are using the APIs over HTTPS, all data is encrypted anyway - and if you are calling them locally, there's typically no significant risk of sniffing.
     
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,483
    Likes Received:
    31
    Trophy Points:
    158
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice