Remove whitespaces from $args
Hett
nginx-forum at forum.nginx.org
Thu Apr 28 10:46:11 UTC 2016
Hi,
Tell me please, how can I remove all spaces from $args ?
I create solution, it remove up to 5 spaces. But it not best way i think.
if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
if ($args ~ (.*)\s(.*)$) { set $args $1; }
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266482,266482#msg-266482
More information about the nginx
mailing list