Comments (7)
Original comment by [email protected]
on 15 Jun 2010 at 8:00
from isemail.
Hi Daniel,
Are you sure you're including the NUL (char(0)) character in what you're
testing? It's hard to include this in the XML document. The point of the test
is to ensure that a NUL character invalidates the address even if it is escaped.
This page is dynamically generated:
http://www.dominicsayers.com/isemail/results.php and my hosting provider is
running PHP 5.
D.
Original comment by [email protected]
on 13 Aug 2010 at 1:09
from isemail.
Hello Dominic,
sorry, I didn't get notified about this comments. I dunno why.
Well, I thought it myself that would meant NUL and not just "\0". Of course, it
couldn't work with the XML. Well, I downloaded your package, converted the XML
into the PHP testcase and then ran the testcase. Test #227 failed. The reason
was that the XML was parsed as-it-is and so there was "\0" instead of NUL. The
same with my Java-Testcases (which read and parse the XML on-the-fly, yay ^^).
Well, I'll try to figure out if this "\0" -> NUL replacement could be done
automatically, so that the XML can be converted to a "correct" testcase #227
with a NUL instead of "\0".
(PS: I tried it with PHP5 and XAMPP on Windows system)
Regards
Daniel Marschall
Original comment by [email protected]
on 8 Sep 2010 at 5:35
from isemail.
Original comment by [email protected]
on 8 Sep 2010 at 8:36
- Changed state: Invalid
from isemail.
I don't tink that this issue is "Invalid". Your XML to PHP-testcase converted
just don't work. That IS a bug (also if it is not a bug in is_email() function
itself).
Original comment by [email protected]
on 8 Sep 2010 at 6:11
from isemail.
Here is the solution of the parsing of the XML file in PHP correctly:
stripcslashes('\0') == "\0"
(I have not tested if this issue has been resolved for PHP-branch until version
2.1)
Now, I have to find the same solution for Java. My Java-branch interpretes '\0'
still as \0 and not as [NUL].
Original comment by [email protected]
on 9 Sep 2010 at 4:29
- Changed title: Strip C-Slashes for XML
- Changed state: Started
from isemail.
Finished.
Java branch now correctly converts NUL-chars. All tests are now 100%. (=>
"FIXED")
PHP branch did not have that failure in version 2.1. In fact, only "\0" was
converted to NUL, not any other C-Escapes. (=> "INVALID")
Original comment by [email protected]
on 9 Sep 2010 at 9:04
- Changed state: Fixed
from isemail.
Related Issues (20)
- AAAA records? HOT 1
- Small corrections in is_email_statustext.php HOT 8
- TLD "invalid" + domainname check + IDNs? HOT 5
- Java: Unicode hostnames causes crash HOT 1
- (PHP) Optional: Make warning tests optional HOT 3
- Empty quoted strings HOT 2
- Double dash in local part HOT 1
- Quoted pair in local part counts as a single character for length calculation HOT 1
- Comments around address literal HOT 2
- Forms marked "obsolete" by the RFCs should raise warning HOT 1
- Clean mailing list stored in mysql database HOT 3
- Folding White Space before and after the @ sign
- Test dns-check and non-dns-check data separately
- tests_beta.xml fails in Java package
- Value throws an exception when running IsEMail.is_email_verbose(email, true) HOT 1
- Out of Range Exception thrown in C# validate function when entire sub domain section is in parens HOT 5
- Patch for /PHP/trunk/test/tests.xml HOT 3
- the email like xxxx@xxx,is it a right email? HOT 1
- Invalid email adress passed off as valid
- Invalid domain (with ampersand) validates OK, not even warning data in ResultInfo in C#
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 isemail.