-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URI prefix 'android-app://' breaks UriFactory #4
Comments
I properly wrapped my code in a try catch block for now. Originally posted by @fr00x at zendframework/zend-uri#9 (comment) |
You have to register a custom scheme yourself, via Originally posted by @Ocramius at zendframework/zend-uri#9 (comment) |
Thank you. That makes sense - but since the referrer is user controlled, I have no idea what to register in order to prevent the exception so I needed to catch it in any case. Originally posted by @fr00x at zendframework/zend-uri#9 (comment) |
Or just use the getFieldValue method to get the referer value. Originally posted by @vincentvandijk at zendframework/zend-uri#9 (comment) |
|
Hi,
I'm seeing people accessing my site e.g. over the LinkedIn android app. The original referer is
"android-app://com.linkedin.android"
This breaks zend-http which uses zend-uri:
PHP Fatal error: Uncaught Zend\Uri\Exception\InvalidArgumentException: no class registered for scheme "android-app" in .../zendframework/zend-uri/src/UriFactory.php:104
Is it possible to add a scheme?
Regards
fr00x
Originally posted by @fr00x at zendframework/zend-uri#9
The text was updated successfully, but these errors were encountered: