]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8849 use proper value quoting; merged from MOODLE_18_STABLE
authorskodak <skodak>
Sun, 11 Mar 2007 19:59:54 +0000 (19:59 +0000)
committerskodak <skodak>
Sun, 11 Mar 2007 19:59:54 +0000 (19:59 +0000)
blocks/login/block_login.php

index a6c05553376a82067430b105a72ed07bb4cc24b0..417d213941392e2e41d8849a9bd4fa414afa562e 100644 (file)
@@ -46,7 +46,7 @@ class block_login extends block_base {
             $this->content->text .= "\n".'<form class="loginform" id="login" method="post" action="'.$wwwroot.'/login/index.php">';
 
             $this->content->text .= '<div class="c1"><label for="login_username">'.get_string('username').'</label>: ';
-            $this->content->text .= '<input type="text" name="username" id="login_username" value="'.$username.'" /></div>';
+            $this->content->text .= '<input type="text" name="username" id="login_username" value="'.s($username).'" /></div>';
 
             $this->content->text .= '<div class="c1"><label for="login_password">'.get_string('password').'</label>: ';
             $this->content->text .= '<input type="password" name="password" id="login_password" value="" /></div>';