Gogs: Repositories named '..' and '.' cannot be entered.

Created on 3 Jul 2016  路  3Comments  路  Source: gogs/gogs

  • Gogs version (or commit ref): 0.9.13
  • Git version: 2.9.0
  • Operating system: Arch Linux
  • Database:

    • [ ] PostgreSQL

    • [ ] MySQL

    • [x] SQLite

  • Can you reproduce the bug at http://try.gogs.io:
  • Log gist: I was unable to find a log which mentioned the created repositories.

    Description

If I create a repository named .. or ., trying to enter them will instead direct me to git.hostname.tld, respectively git.hostname.tld/<repo owner>.

These repositories can, however, be pushed to with git.

needs feedback 馃敤 enhancement

Most helpful comment

Yes we should disallow such names :)

All 3 comments

Hi, I think it is browser's automatic behavior, should we disable such names?

Yes we should disallow such names :)

It's now fixed on develop branch.

Was this page helpful?
0 / 5 - 0 ratings