Shaarli: RSS "not found" (Markdown plugin + .nomarkdown tag)

Created on 13 Nov 2016  路  9Comments  路  Source: shaarli/Shaarli

http://shaarlidemo.tuxfamily.org/Shaarli/?do=rss errors with "not found" if Markdown plugin is enabled and a bookmark entry has the .nomarkdown tag added. Corresponding error message on my installation:
"PHP Fatal error: Cannot unset string offsets in /var/www/Shaarli/plugins/markdown/markdown.php on line 98"

bug plugin

All 9 comments

Good catch! You actually found 2 different bugs here:

  • while rendering the feed, we use the wrong tag list format (string instead of array) for stripNoMarkdownTag parameter.
  • since noMarkdownTag uses strpos(), if you use .nomarkdown instead of the exact nomarkdown, the tag is found but can't be stripped (also the readme is outdated).

Haven't yet found why but nomarkdown shows up as a normal tag in the RSS feed, in "daily" view/template and in the daily RSS feed.

Thanks you for testing.

I don't have git where I run my Shaarli's. So I tried to get your fixes via https://github.com/ArthurHoaro/Shaarli/archive/master.zip and/or https://github.com/shaarli/Shaarli/archive/master.zip but it seems they are not included. How can I get and test your work? Seems I am completely lost. The commits do not even show up at https://github.com/ArthurHoaro/Shaarli/commits/master !?

@k0nsl thanks, however, this does not include @ArthurHoaro fixes!? Anyway, I am looking for a way to access the code myself directly :)

@ArthurHoaro Oops, sorry for the noise: I only now saw that your commits are actually PRs. I'll shut up now and will wait patiently.

Yep, a PR is associated with a branch, in this case plugins/no-md-feed (also my branches are a total mess). You can download it from there.

@ArthurHoaro Thanks for your patience and guidance. Got it, tried it, and it works. Great! Looking forward to seeing these PRs in master.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qwertygc picture qwertygc  路  8Comments

virtualtam picture virtualtam  路  5Comments

schklerg picture schklerg  路  7Comments

kstefanini picture kstefanini  路  8Comments

kalvn picture kalvn  路  5Comments