#278 server: add ~ to the list of allowed characters
Merged 4 years ago by jkaluza. Opened 4 years ago by yuvalturg.
yuvalturg/odcs master  into  master

@@ -170,7 +170,8 @@ 

              # not exploitable.

              if last_dict_key in ["packages"]:

                  continue

-             allowed_chars = [' ', '-', '/', '_', '.', ':', '#', '+', '?', '$']

+             allowed_chars = [' ', '-', '/', '_', '.', ':', '#', '+', '?', '$',

+                              '~']

              if not all(c.isalnum() or c in allowed_chars for c in v):

                  raise ValueError(

                      "Only alphanumerical characters and %r characters "

Some packages are built with a release that includes the ~ character,
make sure odcs does not fail on those

Signed-off-by: Yuval Turgeman yturgema@redhat.com

Pull-Request has been merged by jkaluza

4 years ago