Unverified Commit 3c630f9b authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

strcpy_url: only %-encode values >= 0x80

parent ba67f7d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1519,7 +1519,7 @@ static void strcpy_url(char *output, const char *url, bool relative)
      left = FALSE;
      /* fall through */
    default:
      if(!ISPRINT(*iptr)) {
      if(*iptr >= 0x80) {
        snprintf(optr, 4, "%%%02x", *iptr);
        optr += 3;
      }