The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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,279
    Likes Received:
    8
    Trophy Points:
    38
    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,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page