SpamExperts / cpanel-addon

WHM/cPanel add-on for providing integration with SpamExperts services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON response when protecting a domain

ashleyse2016 opened this issue · comments

Version information

Controlpanel: Cpanel v11.64.0.38
PHP version: 5.6.30
Addon version: 3.0.96529

Steps to replicate

1: Update to latest version
2: Click Domain list
3: Click "Toggle Protection"

Actual result

White screen with JSON response in interface
{"message":"The protection status of cpanel.example.com has been changed to unprotected<\/strong>","status":"success"}

Expected result

To stay on the domain list screen and show a response in HTML not JSON.

Other notes

Fixed in #24.