diff options
author | Joas Schilling <coding@schilljs.com> | 2016-07-18 15:11:44 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-07-18 15:11:44 +0200 |
commit | b1d652e8b05f6edd65aadc57a39e1738b036f5d3 (patch) | |
tree | 928c340a90e918253b673f4935d89a949f231a32 /lib/private/AppFramework/Http | |
parent | 3e00edff990a9255f6e71b08f1e5ff43b4e3a95c (diff) | |
download | nextcloud-server-b1d652e8b05f6edd65aadc57a39e1738b036f5d3.tar.gz nextcloud-server-b1d652e8b05f6edd65aadc57a39e1738b036f5d3.zip |
Copy the regexes to the public interface
Diffstat (limited to 'lib/private/AppFramework/Http')
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php index eca02b2ac2b..d9cf1919252 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/lib/private/AppFramework/Http/Request.php @@ -67,10 +67,20 @@ class Request implements \ArrayAccess, \Countable, IRequest { // Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#'; const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#'; + const REGEX_LOCALHOST = '/^(127\.0\.0\.1|localhost)$/'; + + /** + * @deprecated use \OCP\IRequest::USER_AGENT_CLIENT_IOS instead + */ const USER_AGENT_OWNCLOUD_IOS = '/^Mozilla\/5\.0 \(iOS\) ownCloud\-iOS.*$/'; + /** + * @deprecated use \OCP\IRequest::USER_AGENT_CLIENT_ANDROID instead + */ const USER_AGENT_OWNCLOUD_ANDROID = '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/'; + /** + * @deprecated use \OCP\IRequest::USER_AGENT_CLIENT_DESKTOP instead + */ const USER_AGENT_OWNCLOUD_DESKTOP = '/^Mozilla\/5\.0 \([A-Za-z ]+\) (mirall|csyncoC)\/.*$/'; - const REGEX_LOCALHOST = '/^(127\.0\.0\.1|localhost)$/'; protected $inputStream; protected $content; |