fedora-infra / pkgdb2

Updated version of the Package Database
https://admin.fedoraproject.org/pkgdb/
GNU General Public License v2.0
23 stars 26 forks source link

Trim whitespaces out of package names #272

Closed rapgro closed 9 years ago

rapgro commented 9 years ago

By accident, I managed to create a package named 'python-qutepart ' (without ' in the name, just to show well the space sign at the end). The string '%20' should not be allowed in any package name, too. All other Fedora service seem to ignore whitespaces for the package name. So should also do PkgDB and trim the requested name from the input field. https://admin.fedoraproject.org/pkgdb/package/python-qutepart%20/ vs. http://pkgs.fedoraproject.org/cgit/python-qutepart%20.git/ → 404 error vs. http://pkgs.fedoraproject.org/cgit/python-qutepart.git/