Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Updating the "redirect link" to accept uppercase letters.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Nov 9, 2016
1 parent 12627ba commit c75194c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/dataobjects/LinkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function onBeforeWrite() {

parent::onBeforeWrite();
$this->MappedLink = MisdirectionService::unify_URL($this->MappedLink);
$this->RedirectLink = MisdirectionService::unify_URL($this->RedirectLink);
$this->RedirectLink = trim($this->RedirectLink, ' ?/');
$this->HostnameRestriction = MisdirectionService::unify_URL($this->HostnameRestriction);
}

Expand Down Expand Up @@ -403,7 +403,7 @@ public function getLinkHost() {

public function getLinkSummary() {

return ($link = $this->getLink()) ? MisdirectionService::unify_URL($link) : '-';
return ($link = $this->getLink()) ? trim($link, ' ?/') : '-';
}

/**
Expand Down

0 comments on commit c75194c

Please sign in to comment.