Coder Social home page Coder Social logo

Comments (6)

manolomartinez avatar manolomartinez commented on May 27, 2024

This is now fixed, but I need to think about the best way to sanitize strings in placeholders. Anyway, please confirm that it's now working.

Thanks,
Manolo

from greg.

mfeif avatar mfeif commented on May 27, 2024

That's not a placeholder, that's the title of a feed entry. Or maybe I don't know what you mean? I presume if it's getting through feedparser, it's valid? I don't think we have to worry about SQL injection or such ;-)

Seems like the 'eval' is the problem? I haven't dug into greg's call tree enough to see why eval is needed.

from greg.

 avatar commented on May 27, 2024

If I do greg check -f tnyrh and then greg download 17 it works just fine for me:

Downloading Episode 12: Sarah Koenig on "Serial," and a Resilient Poet -- tnyradiohour010816_cms564184_pod.mp3

Does that part work for you? Or is this error only occurring when greg is run via cron?

from greg.

mfeif avatar mfeif commented on May 27, 2024

It does work with newest git-tip.

from greg.

manolomartinez avatar manolomartinez commented on May 27, 2024

That's not a placeholder, that's the title of a feed entry. Or maybe I don't know what you mean?

I meant you get to the offending string to be evaled, i.e.,

"Episode" in "Episode 12: Sarah Koenig on "Serial," and a Resilient Poet"

by taking the line you have in greg.conf (presumably something like filter = "Episode" in "{title}") and substituting the title of the feed entry for "{title}".

The resulting string is then evaluated to get a condition that greg uses to filter by. In the eval step the extra pair of quotes are making greg trip up. That's what I meant by sanitizing.

from greg.

manolomartinez avatar manolomartinez commented on May 27, 2024

I think this is solved, right? I will close it now, but do let me know if there's anything that needs to be ironed out.

from greg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.