diff options
author | Renato Botelho <renato@netgate.com> | 2016-12-02 14:47:57 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-12-02 14:47:57 -0200 |
commit | 778f988534218cc9e29ee9cb166a56beec8aaf0b (patch) | |
tree | 5205fe644b832c44c90173cae8f7896bfa674e7b | |
parent | 6cb599da2d48168f2c64b5640180c7b8d9bff253 (diff) | |
parent | e8517c7c16b8a845333c7d0e91f552144e6b5560 (diff) | |
download | pfsense-778f988534218cc9e29ee9cb166a56beec8aaf0b.zip pfsense-778f988534218cc9e29ee9cb166a56beec8aaf0b.tar.gz |
Merge pull request #3213 from PiBa-NL/interfaces-gateway-message
-rw-r--r-- | src/usr/local/www/interfaces.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index c73415f..18be1a0 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -3359,7 +3359,8 @@ events.push(function() { } function report_failure(request, textStatus, errorThrown) { - if (textStatus === "error" && request.getResponseHeader("Content-Type") === "text/plain") { + contenttype = ";"+request.getResponseHeader("Content-Type")+";"; + if (textStatus === "error" && contenttype.indexOf(";text/plain;") !== -1) { alert(request.responseText); } else { alert("The IPv4 gateway could not be created."); |