15 lines
617 B
Diff
15 lines
617 B
Diff
|
--- lynx2-8-6/WWW/Library/Implementation/HTTelnet.c 2006-05-30 00:44:54.000000000 +0200
|
||
|
+++ lynx2-8-6/WWW/Library/Implementation/HTTelnet.c.pix 2008-07-07 02:07:08.000000000 +0200
|
||
|
@@ -72,6 +72,11 @@
|
||
|
* *cp=0; // terminate at any ;,<,>,`,|,",' or space or return
|
||
|
* or tab to prevent security whole
|
||
|
*/
|
||
|
+ /* don't accept command line args to telnet */
|
||
|
+ /* notting@redhat.com, 8-25-99 */
|
||
|
+ for (; *host && *host =='-' ; host ++) {
|
||
|
+ *host = '\0';
|
||
|
+ }
|
||
|
for (cp = (strchr(host, '@') ? strchr(host, '@') : host); *cp != '\0';
|
||
|
cp++) {
|
||
|
if (!isalnum(UCH(*cp)) && *cp != '_' && *cp != '-' &&
|