Giter Site home page Giter Site logo

Slice out of bounds about cajun HOT 5 CLOSED

m4tty avatar m4tty commented on July 2, 2024
Slice out of bounds

from cajun.

Comments (5)

Mazon avatar Mazon commented on July 2, 2024

Think not proper creole input is the issue..

from cajun.

andyleap avatar andyleap commented on July 2, 2024

probably need more info about what's being passed in...

func main() {
	out, err := cajun.Transform(`Removal-guide: http://www.malwareremovalguides.info/trovi-com-browser-hijacker-removal-guide/ IncidentType=malware Title=Adware/PUA: Trovi`)
	fmt.Println(out, err)
}

yields

<p>Removal-guide: <a href="http://www.malwareremovalguides.info/trovi-com-browser-hijacker-removal-guide/" />http://www.malwareremovalguides.info/trovi-com-browser-hijacker-removal-guide/</a> IncidentType=malware Title=Adware/PUA: Trovi</p> <nil>

which seems correct.

from cajun.

Mazon avatar Mazon commented on July 2, 2024

func main() {
out, err := cajun.Transform(Removal-guide: http://www.malwareremovalguides.info/trovi-com-browser-hijacker-removal-guide/)
fmt.Println(out, err)
}`

When it is only the url, no 'space' or anything after it does not work. But the spec seem to allow it

[[link]]
[[MyBigPage|Go to my page]]
[[http://www.wikicreole.org/]]
http://www.rawlink.org/, http://www.another.rawlink.org
[[http://www.wikicreole.org/|Visit the WikiCreole website]]
[[Weird Stuff|Weird //Stuff//]]
[[Ohana:WikiFamily]]

from cajun.

andyleap avatar andyleap commented on July 2, 2024

yeah, that's an issue in the parser. I've got a pull request open that makes a few other changes as well, but does fix the issue. master...andyleap:master#diff-afa30dddc22eee32cb8f633eef30e7f2R589 is where the fix is.

from cajun.

Mazon avatar Mazon commented on July 2, 2024

Awesome dude! Thank you.

from cajun.

Related Issues (3)

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.