Log incoming invalid attachment urls also
Same as previous commit but for incoming. // FREEBIE
This commit is contained in:
@@ -36498,7 +36498,7 @@ var TextSecureServer = (function() {
|
|||||||
}).then(function(response) {
|
}).then(function(response) {
|
||||||
var match = response.location.match(this.attachment_id_regex);
|
var match = response.location.match(this.attachment_id_regex);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
throw new Error('Received invalid attachment url');
|
throw new Error('Received invalid attachment url: ' + response.location);
|
||||||
}
|
}
|
||||||
return ajax(response.location, {
|
return ajax(response.location, {
|
||||||
type : "GET",
|
type : "GET",
|
||||||
|
@@ -315,7 +315,7 @@ var TextSecureServer = (function() {
|
|||||||
}).then(function(response) {
|
}).then(function(response) {
|
||||||
var match = response.location.match(this.attachment_id_regex);
|
var match = response.location.match(this.attachment_id_regex);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
throw new Error('Received invalid attachment url');
|
throw new Error('Received invalid attachment url: ' + response.location);
|
||||||
}
|
}
|
||||||
return ajax(response.location, {
|
return ajax(response.location, {
|
||||||
type : "GET",
|
type : "GET",
|
||||||
|
Reference in New Issue
Block a user