aboutsummaryrefslogtreecommitdiff
path: root/access_control.rb
diff options
context:
space:
mode:
Diffstat (limited to 'access_control.rb')
-rwxr-xr-xaccess_control.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/access_control.rb b/access_control.rb
index 62a6c38..6063324 100755
--- a/access_control.rb
+++ b/access_control.rb
@@ -29,7 +29,7 @@ $d = Dudle.new
acusers = {}
-File.open(".htdigest","r").each_line{|l|
+File.open(".htdigest","r").each_line{|l|
user,realm = l.scan(/^(.*):(.*):.*$/).flatten
acusers[user] = realm
}
@@ -142,7 +142,7 @@ if $cgi.include?("ac_user")
else
if $cgi.include?("ac_create")
add_to_htdigest(user,$cgi["ac_password0"])
- acusers[user] = true
+ acusers[user] = true
write_htaccess(acusers)
end
@@ -220,7 +220,7 @@ $d.html << <<AC
<tr>
<td></td>
<td>
- #{acswitchbutton}
+ #{acswitchbutton}
</td>
</tr>
</table>