diff options
Diffstat (limited to 'lib/plugins/authplain/auth.php')
-rw-r--r-- | lib/plugins/authplain/auth.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/plugins/authplain/auth.php b/lib/plugins/authplain/auth.php index ec5d16e9d..3d303597c 100644 --- a/lib/plugins/authplain/auth.php +++ b/lib/plugins/authplain/auth.php @@ -356,9 +356,12 @@ class auth_plugin_authplain extends DokuWiki_Auth_Plugin { $row = array(); $piece = ''; - for($i=0; $i<strlen($line); $i++){ + $len = strlen($line); + for($i=0; $i<$len; $i++){ if ($line[$i]=='\\'){ + $piece .= $line[$i]; $i++; + if ($i>=$len) break; } else if ($line[$i]==':'){ $row[] = $piece; $piece = ''; |