mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Convert some characters to entities to allow them in a search string.
This commit is contained in:
parent
ed2dc18408
commit
de63178386
@ -336,7 +336,15 @@ second parameter. It returns the mapped target URL.
|
||||
}
|
||||
$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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user