Fixed empty selector behavior for better compatibility with Floodgap indexes
This commit is contained in:
+2
-2
@@ -28,8 +28,8 @@ Hi01379 = (function(psGopherRequest) {
|
||||
sel = rest.length > 1 ? rest[1] : '' // selector
|
||||
host = rest.length > 2 ? rest[2] : '' // hostname
|
||||
port = rest.length > 3 ? (0|rest[3]) : '' // port
|
||||
// check for the empty fields
|
||||
if(!sel) sel = desc // selector defaults to the description
|
||||
// selector defaults to the description only if there are no other fields
|
||||
if(!sel && rest.length < 2) sel = desc
|
||||
if(!host) host = chost // host defaults to the current host
|
||||
if(!port) port = cport // port defaults to the current port
|
||||
if(type == 'i') { // information message - wrap them in pretag
|
||||
|
||||
Reference in New Issue
Block a user