Giter VIP home page Giter VIP logo

Comments (4)

ThomasWaldmann avatar ThomasWaldmann commented on June 2, 2024

Original comment by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).


the name_validator already disqualifies names ending with a slash.

the validation is not strict yet (but just warns), but there is another issue open for this.

from moin.

ThomasWaldmann avatar ThomasWaldmann commented on June 2, 2024

Original comment by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).


partly fixed by: http://hg.moinmo.in/moin/2.0/rev/f38a893334b5

(that changeset at least makes it hard to visit or create such items from the wiki UI)

we still want that validation code mentioned above, for other ways of creating items.

from moin.

ThomasWaldmann avatar ThomasWaldmann commented on June 2, 2024

Original comment by xiaq (Bitbucket: xiaq, GitHub: xiaq).


Besides being confusing to have both Example and Example/, it also confuses the index code, which uses on '/' in relname to decide whether an item is a direct subitem or not.

Try creating test.moinmo.in/Home/lorem/ and see what appears on the subitem sidebar of test.moinmo.in/Home.

from moin.

ThomasWaldmann avatar ThomasWaldmann commented on June 2, 2024

Original comment by Thomas Waldmann (Bitbucket: thomaswaldmann, GitHub: thomaswaldmann).


note: this should be part of input data validation and we should just reject creating items with names ending with a slash.

from moin.

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.