Skip to content

Commit

Permalink
Merge pull request #4970 from felixrieseberg/iss4888-2
Browse files Browse the repository at this point in the history
RSS: Don't add trailing '/' to post image
  • Loading branch information
ErisDS committed Mar 3, 2015
2 parents 60f1205 + 436d2a8 commit 8432215
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions core/server/controllers/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,20 +561,6 @@ frontendControllers = {
attributeValue = attributeValue.substr(1);
}

// make sure URL has a trailing slash
try {
parsed = url.parse(attributeValue);

if (parsed.pathname && parsed.pathname.slice(-1) !== '/') {
parsed.pathname += '/';

attributeValue = url.format(parsed);
}
} catch (e) {
// if the URL we've built cannot be parsed, fall back to the unprocessed URL
return;
}

attributeValue = baseUrl + attributeValue;
el.attr(attributeName, attributeValue);
});
Expand Down

0 comments on commit 8432215

Please sign in to comment.