-
Notifications
You must be signed in to change notification settings - Fork 42
Issue with invalid entry IDs (isPermaLink not set to false) #89
Comments
Can you provide an unit test which illustrates the problem? At the moment I can not reproduce the problem. Thanks! |
What does the following code output for you? use Zend\Feed\Uri;
var_dump(Uri::factory('news-27')->isValid()); |
@glen-84 I do not know why Atom and RSS are handled differently here: zend-feed/src/Writer/Renderer/Entry/Atom.php Lines 287 to 295 in 8a54f0e
zend-feed/src/Writer/Renderer/Entry/Rss.php Lines 299 to 301 in 8a54f0e
Btw. the class includes a method |
Fixes #89 - Issue with invalid entry IDs (isPermaLink not set to false)
@froschdesign It works! 🎉 Thanks a lot. (apologies for the late reply) |
We're using entry IDs like
news-27
.Zend\Feed\Uri#isValid
is returningtrue
for these IDs, andisPermaLink
is therefore not being set tofalse
.This results in the feed not validating:
Code to reproduce the issue
Expected results
These IDs are not valid URLs, and therefore
isPermaLink
should be set tofalse
.Actual results
isPermaLink
is not set.The text was updated successfully, but these errors were encountered: