Fix the URL max limit in web interface
The web interface has a hardcoded 64 char URL limit, even though the actual url[] array was increased to 96 chars. Use sizeof(url) in the handler instead of a hardcoded number to enable use of all space. Addresses issue #21 , again.
This commit is contained in:
1 parent
4cb8861070
commit
e844536251
1 file changed
+1
-1
@@ -146,7 +146,7 @@ void HandleChangeURL(WiFiClient *client, char *params)
|
||||
{
|
||||
char *namePtr;
|
||||
char *valPtr;
|
||||
char newURL[64];
|
||||
char newURL[sizeof(url)];
|
||||
char newType[4];
|
||||
|
||||
newURL[0] = 0;
|
||||
|
||||
Reference in new issue
Block a user