Skip to content

Commit

Permalink
proxy reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Oct 24, 2023
1 parent 1df6a3c commit ec5f040
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -5349,6 +5349,9 @@ public function tidy_parameter(string $param) : void {
if ($this->has('via') && stripos($this->get('via'), 'library') !== FALSE) $this->forget('via');
}
}
if (preg_match("~^https://wikipedialibrary\.idm\.oclc\.org/login\?auth=production&url=(https?://.+)$~i", $this->get($param), $matches)) {
$this->set($param, $matches[1]);
}
if (preg_match("~^(https://www\.ancestry(?:institution|).com/discoveryui-content/view/\d+:\d+)\?.+$~i", $this->get($param), $matches)) {
$this->set($param, $matches[1]);
}
Expand Down

0 comments on commit ec5f040

Please sign in to comment.