-
Notifications
You must be signed in to change notification settings - Fork 9
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
[BUG] URL validating is oversensitive #78
Comments
I assume you are referencing to the Admin Panel? I don't get the problem: The Please provide an example which illustrates the problem. |
Sorry, I used the API.
Then I got the error called by this line |
Yes, you are right, the check for a URL in https://github.com/brotkrueml/schema/blob/master/Classes/ViewHelpers/AdminPanel/PropertyValueViewHelper.php#L80 is without a path, the check in TypeLink is with the path. This is inconsistent. Will provide a patch. What version do you need actually? 1 or 2? |
Please remove |
The Reason: In Admin Panel a URL is linked. Without having a proper URL it can't be linked. That should be no problem for you, as The error comes from inconsistent URL checking. This is the bug and will be fixed. |
I tried to set a url propery with a value like this: https://www.test.de
Now I'm getting an validation error because of the
FILTER_FLAG_PATH_REQUIRED
flag.I tried the schema validator and Google rich results an they are both happy with
https://www.test.de/
https://www.test.de
www.test.de
Because I have old content with a mix of theese spellings it would be good to delete
FILTER_FLAG_PATH_REQUIRED
in Classes/Model/Manual/TypeLink.php and removestr_starts_with($link, 'http')
some lines below.The text was updated successfully, but these errors were encountered: