Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
d7f42298
Commit
d7f42298
authored
13 years ago
by
elliotttf
Committed by
Eric Mckenna
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue #1427642 by elliotttf: Fixed Use drupal_exit() rather than exit()
in PuSH/FeedsHTTPFetcher callbacks.
parent
3516859b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/PuSHSubscriber.inc
+2
-2
2 additions, 2 deletions
libraries/PuSHSubscriber.inc
plugins/FeedsHTTPFetcher.inc
+2
-2
2 additions, 2 deletions
plugins/FeedsHTTPFetcher.inc
with
4 additions
and
4 deletions
libraries/PuSHSubscriber.inc
+
2
−
2
View file @
d7f42298
...
@@ -219,12 +219,12 @@ class PuSHSubscriber {
...
@@ -219,12 +219,12 @@ class PuSHSubscriber {
if
(
$verify
)
{
if
(
$verify
)
{
header
(
'HTTP/1.1 200 "Found"'
,
NULL
,
200
);
header
(
'HTTP/1.1 200 "Found"'
,
NULL
,
200
);
print
$_GET
[
'hub_challenge'
];
print
$_GET
[
'hub_challenge'
];
exit
();
drupal_
exit
();
}
}
}
}
header
(
'HTTP/1.1 404 "Not Found"'
,
NULL
,
404
);
header
(
'HTTP/1.1 404 "Not Found"'
,
NULL
,
404
);
$this
->
log
(
'Could not verify subscription.'
,
'error'
);
$this
->
log
(
'Could not verify subscription.'
,
'error'
);
exit
();
drupal_
exit
();
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsHTTPFetcher.inc
+
2
−
2
View file @
d7f42298
...
@@ -79,12 +79,12 @@ class FeedsHTTPFetcher extends FeedsFetcher {
...
@@ -79,12 +79,12 @@ class FeedsHTTPFetcher extends FeedsFetcher {
catch
(
Exception
$e
)
{
catch
(
Exception
$e
)
{
// In case of an error, respond with a 503 Service (temporary) unavailable.
// In case of an error, respond with a 503 Service (temporary) unavailable.
header
(
'HTTP/1.1 503 "Not Found"'
,
NULL
,
503
);
header
(
'HTTP/1.1 503 "Not Found"'
,
NULL
,
503
);
exit
();
drupal_
exit
();
}
}
}
}
// Will generate the default 200 response.
// Will generate the default 200 response.
header
(
'HTTP/1.1 200 "OK"'
,
NULL
,
200
);
header
(
'HTTP/1.1 200 "OK"'
,
NULL
,
200
);
exit
();
drupal_
exit
();
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment