Skip to content

Commit

Permalink
Merge pull request #17 from nextcloud/fix-url-casing
Browse files Browse the repository at this point in the history
Fix casing of URL
  • Loading branch information
nickvergessen authored Apr 13, 2017
2 parents aa49aae + fdba697 commit 5704662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Controller/APIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function add($name, $url, $lang, $type, $icon) {
} catch (InvalidNameException $e) {
return new DataResponse($this->l->t('The given name is invalid'), Http::STATUS_BAD_REQUEST);
} catch (InvalidURLException $e) {
return new DataResponse($this->l->t('The given url is invalid'), Http::STATUS_BAD_REQUEST);
return new DataResponse($this->l->t('The given URL is invalid'), Http::STATUS_BAD_REQUEST);
} catch (LanguageNotFoundException $e) {
return new DataResponse($this->l->t('The given language does not exist'), Http::STATUS_BAD_REQUEST);
} catch (InvalidTypeException $e) {
Expand All @@ -153,7 +153,7 @@ public function update($id, $name, $url, $lang, $type, $icon) {
} catch (InvalidNameException $e) {
return new DataResponse($this->l->t('The given name is invalid'), Http::STATUS_BAD_REQUEST);
} catch (InvalidURLException $e) {
return new DataResponse($this->l->t('The given url is invalid'), Http::STATUS_BAD_REQUEST);
return new DataResponse($this->l->t('The given URL is invalid'), Http::STATUS_BAD_REQUEST);
} catch (LanguageNotFoundException $e) {
return new DataResponse($this->l->t('The given language does not exist'), Http::STATUS_BAD_REQUEST);
} catch (InvalidTypeException $e) {
Expand Down

0 comments on commit 5704662

Please sign in to comment.