[Plugin: Business Directory] Version 0.8.3 Beta and Website URL Validation (Possible Fix)
-
The current implementation only allows very basic website URLs.
Unfortunately not everyone has a top-level domainFor example these URLs are not allowed in the latest version (0.8.3 Beta):
https://www.somesite.com/
https://www.somesite.com/some-url-path/
https://www.somesite.com/some_url_path/index.htmlA quick fix for this is to find this string in “functions.php”
/^http{1}s?:{1}\/\/{1}[A-z0-9]+[A-z0-9\-\.]*\.{1}[A-z]{2,4}$/
and replace it with
/^http{1}s?:{1}\/\/{1}[A-z0-9]+[A-z0-9\-\.]*\.{1}[A-z]{2,4}(\/([a-zA-Z0-9\.\-_])+)*(\/){0,1}$/
This will support the URLs above
https://www.ads-software.com/extend/plugins/business-directory/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Business Directory] Version 0.8.3 Beta and Website URL Validation (Possible Fix)’ is closed to new replies.