Constant Contact API parsing bug fix
-
Just wanted to let you know I found a bug in your plugin. I’m not sure if this was a recent change in the Constant Contact api, but the usernames are urlencoded in the links of the XML response. So,
/ws/customers/example%40example.com/lists?next=111111111instead of/ws/customers/[email protected]/lists?next=111111111. The code currently splits on the username to grab the next link when there are many lists and pagination is required. It’s not splitting correctly because of the url encoding. I added this code between lines 154 and 155 of cc_class.php to fix the issue:$nextUrl = urldecode($nextUrl);
The topic ‘Constant Contact API parsing bug fix’ is closed to new replies.