Comments (5)
Validator does support internationalized local part, previously it was passing due to IDNA false positive bug.
Originally posted by @Xerkus at zendframework/zend-validator#155 (comment)
from laminas-validator.
@Xerkus but if the validator yields false for them, it means it clearly doesn't support them.
Originally posted by @amcsi at zendframework/zend-validator#155 (comment)
from laminas-validator.
sorry, that was a typo. "does not"*
internationalization brings in support for utf characters where were
none, which complicates things a lot
I will try to add proper support for them, will need to do research on the
topic
--
Aleksei Khudiakov
Developer at Roave LLC
https://roave.com
On Apr 6, 2017 18:39, "Attila Szeremi" [email protected] wrote:
@Xerkus https://github.com/Xerkus but if the validator yields false for
them, it means it clearly doesn't support them.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
zendframework/zend-validator#155 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAsTUkZlB4vwRuV2C1igcAY2Ht7WCNh6ks5rtKS6gaJpZM4MkBba
.
Originally posted by @Xerkus at zendframework/zend-validator#155 (comment)
from laminas-validator.
I'm running into the same issue. A client of mine is in Israel and her messages are failing with the bad internationalized domain error:
Fatal error: Uncaught Laminas\Mail\Exception\InvalidArgumentException: 'mhmc.co.xn--il>-5qe' is not a valid hostname for the email address in /path/to/includes/vendor/laminas/laminas-mail/src/Address.php
Are there plans for fixing this?
from laminas-validator.
I added some debugging and found that the issue is the preg_match
on line 495 of laminas-validator/src/EmailAddress.php
.
The value matched against has a Hebrew character after the closing >
:
ג לא <[email protected]>ה
Replacing the regex with /^(?:.*<)?(.+)@([^@]+?)(?:>|$)/
fixes the problem. However, the original regular expression leads me to believe that it was expecting just what is inside the <
and >
, so perhaps a better fix would be in the header parser that pulls the address in the first place.
I hope this helps.
from laminas-validator.
Related Issues (20)
- Error ATTACK from FileUploadFile HOT 2
- Drop Zend related aliases and anything providing compatibility with Zend HOT 3
- Drop Service Manager v2 Compatibility
- Drop or upgrade Laminas\Math HOT 1
- GpsPoint validator needs a rewrite because it returns true for the input "foo, bar" HOT 5
- `@psalm-assert` error upstream due to `ValidatorChain` HOT 1
- Dependency Dashboard
- Digits validator not working because laminas-filter dependency is not listed in `require` section of composer.json HOT 1
- Upload validator should be able to handle array of arrays returned by ServerRequestInterface::getUploadedFiles HOT 1
- Enum-Validator HOT 4
- Making the GPSPoint validator less english language centric
- (Hostname, .cn) preg_match(): Compilation failed: regular expression is too large at offset 156184
- Automate the update of IANA TLD list
- Validator plugin manager requires a `MvcTranslator` for translation - in any context HOT 2
- Validator\File\MimeType open_basedir error not handled HOT 3
- Need support for laminas/laminas-servicemanager v4 HOT 6
- Hostname validator triggers "Uninitialized string offset 1"
- `ValidatorPluginManager` must not require a template type HOT 4
- Laminas Validator has an indirect dependency to laminas-db HOT 4
- Deprecate and remove SPACE case for NotEmpty validator HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laminas-validator.