1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Convert some characters to entities to allow them in a search string.

This commit is contained in:
Russ Rowan 2005-09-28 16:02:01 -04:00
parent ed2dc18408
commit de63178386

View File

@ -336,7 +336,15 @@ second parameter. It returns the mapped target URL.
} }
$url =~ s/!bork!/$bork/; $url =~ s/!bork!/$bork/;
} }
$url .= $search if $search; if ($search)
{
$search =~ s/%/%25/g;
$search =~ s/&/%26/g;
$search =~ s/\s/%20/g;
$search =~ s/\+/%2b/g;
$search =~ s/#/%23/g;
$url .= $search;
}
return $url; return $url;
} }