Allow for shortenviayourls in query params

This commit is contained in:
Aaron Sherber 2024-03-16 10:17:58 -04:00
parent 6eb5fdcc06
commit 7c9cc7754f
No known key found for this signature in database
GPG key ID: AEB76A0BD39D7B28
2 changed files with 18 additions and 5 deletions

View file

@ -143,7 +143,7 @@ class Request
} elseif (array_key_exists('jsonld', $this->_params) && !empty($this->_params['jsonld'])) {
$this->_operation = 'jsonld';
} elseif (array_key_exists('link', $this->_params) && !empty($this->_params['link'])) {
if (strpos($this->getRequestUri(), '/shortenviayourls') !== false) {
if (strpos($this->getRequestUri(), '/shortenviayourls') !== false || array_key_exists('shortenviayourls', $this->_params)) {
$this->_operation = 'yourlsproxy';
}
}