We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fea3eb2 commit a4db616Copy full SHA for a4db616
1 file changed
src/IndieWeb/link_rel_parser.php
@@ -9,7 +9,8 @@
9
// in $h: HTTP headers as a string
10
// returns: array of rel values as indices to arrays of URLs
11
function http_rels($h) {
12
- $h = explode("\r\n", preg_replace("/(\r\n|\r|\n)[ \t]+/", " ", $h));
+ $h = preg_replace("/(\r\n|\r)/", "\n", $h);
13
+ $h = explode("\n", preg_replace("/(\n)[ \t]+/", " ", $h));
14
$rels = array();
15
foreach ($h as $f) {
16
if (!strncmp($f, 'X-Pingback: ', 12)) {
0 commit comments