This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
URI prefix 'android-app://' breaks UriFactory #9
Comments
I properly wrapped my code in a try catch block for now. |
You have to register a custom scheme yourself, via |
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. |
Or just use the getFieldValue method to get the referer value. |
This repository has been closed and moved to laminas/laminas-uri; a new issue has been opened at laminas/laminas-uri#4. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: