Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
ed1f7aca
Commit
ed1f7aca
authored
Sep 20, 2006
by
sopel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MX checking disabled by default
parent
20f8581c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Email.php
Doctrine/Validator/Email.php
+6
-4
No files found.
Doctrine/Validator/Email.php
View file @
ed1f7aca
...
@@ -14,10 +14,12 @@ class Doctrine_Validator_Email {
...
@@ -14,10 +14,12 @@ class Doctrine_Validator_Email {
if
(
empty
(
$value
))
if
(
empty
(
$value
))
return
true
;
return
true
;
$parts
=
explode
(
"@"
,
$value
);
if
(
isset
(
$args
[
0
]))
{
if
(
isset
(
$parts
[
1
])
&&
function_exists
(
"checkdnsrr"
))
{
$parts
=
explode
(
"@"
,
$value
);
if
(
!
checkdnsrr
(
$parts
[
1
],
"MX"
))
if
(
isset
(
$parts
[
1
])
&&
function_exists
(
"checkdnsrr"
))
{
return
false
;
if
(
!
checkdnsrr
(
$parts
[
1
],
"MX"
))
return
false
;
}
}
}
$qtext
=
'[^\\x0d\\x22\\x5c\\x80-\\xff]'
;
$qtext
=
'[^\\x0d\\x22\\x5c\\x80-\\xff]'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment