Just a typo correction
On 02/05/07 13:54, Brandon Armstead wrote:
Daniel-Constantin Mierla wrote:
> Stripping is now possible with the new introduced 'transformations':
>
http://openser.org/dokuwiki/doku.php/transformations:devel
>
> So if you want to strip last two characters of username in R-URI
>
> $var(x) = $(rU{s.len})-2;
> $rU = $(ru{s.substr,0,$var(x)});
^^^ this is:
$rU = $(rU{s.substr,0,$var(x)});
Cheers,
Daniel
Cheers,
Daniel
On 01/30/07 09:08, Juha Heinanen wrote:
Brandon Armstead writes:
i.e. strip_tail(strlen($ru) - 2); ... or
something like such.
sorry, but my suggestion
substr($ru, -2, 2)
does not work, since it returns the last two chars of $ru not the
remaining chars. strlen is indeed needed for the above. using php
substr and strlen
strip_tail(strlen($ru) - 2)
becomes
substr($ru, 0, strlen($ru) - 2)
-- juha
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
Hello Daniel,
Glad to see this implemented, I think it will be a definite asset
to the future and improvements of OpenSER. Keep up the good work!
Regards,
Brandon