passwdpop function (cPanel API2) question
Hello!
Can anyone explain me a strange behavior of API processor? Here is the thing: I was changing passwords for mailboxes on server using .cpanel_internal_message { border: 1px solid #fff; outline-style: solid; outline-width: 1px; outline-color: #aaa; padding: 5px; } .cpanel_internal_error_warn { background-color: #FFF6CF; } .cpanel_internal_error_error { background-color: #F8E7E6; }
{"cpanelresult":{"apiversion":"2","data":{"reason":"Failed to read valid json data in json fast mode: illegal backslash escape sequence in string, at character offset 37 (before \"\\\\xDELiKJ*0\",\"domain...\") at /usr/local/cpanel/Cpanel/JSON.pm line 120, line 1.\n","result":"0"},"type":"text"}}
I discovered that it happened with the following password: ^@qZAX3Ca%dELiKJ*0 Furthermore, there will be no exception if you replace % character in it to another position or just even add one more near it. So what is wrong with % char? Is it about combination with "d" or "a" near it?
I discovered that it happened with the following password: ^@qZAX3Ca%dELiKJ*0 Furthermore, there will be no exception if you replace % character in it to another position or just even add one more near it. So what is wrong with % char? Is it about combination with "d" or "a" near it?
-
'%' often has special meaning. Does the problem go away when you URI encode % (replace % with %25)? 0 -
'%' often has special meaning. Does the problem go away when you URI encode % (replace % with %25)?
Yes, I suspected that. In order to make process simpler, I just removed "%" from the pool of characters for password generation - much easier than find and encode it every time. But thank you for the reply and advice!0
Please sign in to leave a comment.
Comments
2 comments