mirror of
https://github.com/sasjs/core.git
synced 2026-01-15 20:40:05 +00:00
fix: quoting mf_getuser in case of commas. Fixes #189
This commit is contained in:
@@ -33,7 +33,8 @@
|
|||||||
%else %if %symexist(&metavar) %then %do;
|
%else %if %symexist(&metavar) %then %do;
|
||||||
%if %length(&&&metavar)=0 %then %let user=&sysuserid;
|
%if %length(&&&metavar)=0 %then %let user=&sysuserid;
|
||||||
/* sometimes SAS will add @domain extension - remove for consistency */
|
/* sometimes SAS will add @domain extension - remove for consistency */
|
||||||
%else %let user=%scan(&&&metavar,1,@);
|
/* but be sure to quote in case of usernames with commas */
|
||||||
|
%else %let user=%unquote(%scan(%quote(&&&metavar),1,@));
|
||||||
%end;
|
%end;
|
||||||
%else %let user=&sysuserid;
|
%else %let user=&sysuserid;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user