From: Mikael Nordfeldth Date: Fri, 3 Apr 2015 18:58:12 +0000 (+0200) Subject: bad URL is a clientError X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3cf5fe879552a83338df08327f8ac2b8b78aff9c;p=quix0rs-gnu-social.git bad URL is a clientError --- diff --git a/plugins/Oembed/actions/oembed.php b/plugins/Oembed/actions/oembed.php index a586bf2b00..ccba4c42a5 100644 --- a/plugins/Oembed/actions/oembed.php +++ b/plugins/Oembed/actions/oembed.php @@ -46,8 +46,7 @@ class OembedAction extends Action $url = $this->trimmed('url'); if (substr(strtolower($url),0,strlen(common_root_url())) !== strtolower(common_root_url())) { // TRANS: Error message displaying attachments. %s is the site's base URL. - // FIXME: 404 not found?! (this will automatically become a 500 because it's not a serverError!) - $this->serverError(sprintf(_('Only %s URLs over plain HTTP please.'), common_root_url()), 404); + $this->clientError(sprintf(_('oEmbed data will only be provided for %s URLs.'), common_root_url()), 400); } $path = substr($url,strlen(common_root_url()));