Preserve ifs when calling other functions after temporary altering it. Fixes a couple of minor bugs.
Added difs env var that can be used anywhere to restore default ifs.
This commit is contained in:
parent
d12c13ee25
commit
c9b9e4e9bf
4 changed files with 4 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ fn get_user {
|
|||
get_post_args user_name user_password
|
||||
|
||||
if(~ $#user_name 0) {
|
||||
ifs=':' { cu=`{get_cookie werc_user|tr -d $NEW_LINE} }
|
||||
ifs=':' { cu=`{ifs=$difs {get_cookie werc_user} | tr -d $NEW_LINE} }
|
||||
if(! ~ $#cu 0) {
|
||||
user_name=$cu(1)
|
||||
user_password=$cu(3)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue