mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-09-18 11:44:45 -04:00
Allow for shortenviayourls in query params
This commit is contained in:
parent
6eb5fdcc06
commit
7c9cc7754f
2 changed files with 18 additions and 5 deletions
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue