Author: jfthomps
Date: Mon Aug 10 20:10:15 2015
New Revision: 1695161

URL: http://svn.apache.org/r1695161
Log:
VCL-873 - web UI only accepts 1 ssh identity key under User Preferences

userpreferences.php: modified submitGeneralPreferences: added \n\r to the 
accepted characters in the preg_match for $pubkeys

Modified:
    vcl/trunk/web/.ht-inc/userpreferences.php

Modified: vcl/trunk/web/.ht-inc/userpreferences.php
URL: 
http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/userpreferences.php?rev=1695161&r1=1695160&r2=1695161&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/userpreferences.php (original)
+++ vcl/trunk/web/.ht-inc/userpreferences.php Mon Aug 10 20:10:15 2015
@@ -561,7 +561,7 @@ function submitGeneralPreferences() {
                $_SESSION['user']['usepublickeys'] = $newval;
                $user['usepublickeys'] = $newval;
        }
-       if($pubkeyauth == 2 && preg_match('|^[-a-zA-Z0-9\+/ @=\.]*$|', 
$pubkeys)) {
+       if($pubkeyauth == 2 && preg_match('|^[-a-zA-Z0-9\+/ @=\.\n\r]*$|', 
$pubkeys)) {
                if(get_magic_quotes_gpc())
                        $pubkeys = stripslashes($pubkeys);
                $_pubkeys = mysql_real_escape_string($pubkeys);


Reply via email to