Remove spurious URL check of YouTube DIAL arguments. (b/11933493)
This is needed for the IOS client which sends time as a
floating point value.
Change-Id: I2e64ae5b511b0e1abcb2d325bb9281a1afb3d6b3
diff --git a/src/server/main.c b/src/server/main.c
index 32fd628..0d8a7fc 100644
--- a/src/server/main.c
+++ b/src/server/main.c
@@ -244,19 +244,6 @@
DIAL_run_t *run_id, void *callback_data) {
fprintf(stderr, "** LAUNCH YouTube **\n");
- // TODO(steineldar): Verify that the args string is a valid URL query param.
- for (int n = 0; args[n] != 0; ++n) {
- char c = args[n];
- if (!(( '0' <= c && c <= '9' ) ||
- ( 'a' <= c && c <= 'z' ) ||
- ( 'A' <= c && c <= 'Z' ) ||
- ( c == '=' || c == '-' || c == '_' || c == '&' ))) {
- fprintf(stderr, "Invalid char [%d] = %c", (int) c, c);
- args = "";
- break;
- }
- }
-
char url[512] = {0,};
int urlLength = snprintf( url, sizeof(url), "https://www.youtube.com/tv?%s", args);
if (urlLength>=sizeof(url)) {