This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 46
46
<div class="authorizationText">
47
47
<img class="secureImage" alt="" src="<?php echo $ this ->coreWebroot ?> /public/images/icons/lock.png"/>
48
48
By logging in, you are authorizing
49
- <b><?php echo $ this ->client ->getName () ?> </b>
49
+ <b><?php echo $ this ->escape ( $ this -> client ->getName ()); ?> </b>
50
50
to perform the following actions:
51
51
<ul class="scopeList">
52
52
<?php
53
53
foreach ($ this ->scopeStrings as $ scopeString ) {
54
- echo '<li> ' .$ scopeString .'</li> ' ;
54
+ echo '<li> ' .$ this -> escape ( $ scopeString) .'</li> ' ;
55
55
}
56
56
?>
57
57
</ul>
65
65
<input class="btn btn-primary loginSubmit" type="submit" name="allowOrDeny" value="Allow"/>
66
66
<input class="btn loginDeny" type="submit" name="allowOrDeny" value="Deny"/>
67
67
</div>
68
- <input type="hidden" name="redirect_uri" value="<?php echo $ this ->redirectUri ?> "/>
69
- <input type="hidden" name="state" value="<?php echo htmlspecialchars ($ this ->state ) ?> "/>
70
- <input type="hidden" name="scope" value="<?php echo htmlspecialchars ($ this ->scope ) ?> "/>
71
- <input type="hidden" name="client_id" value="<?php echo $ this ->client ->getKey () ?> "/>
68
+ <input type="hidden" name="redirect_uri" value="<?php echo $ this ->escape ( $ this -> redirectUri ); ?> "/>
69
+ <input type="hidden" name="state" value="<?php echo $ this -> escape ($ this ->state ) ?> "/>
70
+ <input type="hidden" name="scope" value="<?php echo $ this -> escape ($ this ->scope ) ?> "/>
71
+ <input type="hidden" name="client_id" value="<?php echo $ this ->escape ( $ this -> client ->getKey () ) ?> "/>
72
72
</form>
73
73
</div>
74
74
</body>
Original file line number Diff line number Diff line change 40
40
<tbody>
41
41
<?php
42
42
foreach ($ this ->clients as $ client ) {
43
- echo '<tr><td> ' .$ client ->getName ().'</td><td> ' .$ client ->getKey ().'</td><td> ' .$ client ->getSecret (
44
- ).'</td><td><a class="deleteClientLink" element=" ' .$ client ->getKey ().'">Delete</a></td></tr> ' ;
43
+ echo '<tr><td> ' .$ this -> escape ( $ client ->getName ()) .'</td><td> ' .$ client ->getKey ().'</td><td> ' .$ this -> escape ( $ client ->getSecret (
44
+ )) .'</td><td><a class="deleteClientLink" element=" ' .$ this -> escape ( $ client ->getKey () ).'">Delete</a></td></tr> ' ;
45
45
}
46
46
?>
47
47
</tbody>
66
66
<tbody>
67
67
<?php
68
68
foreach ($ this ->codes as $ code ) {
69
- echo '<tr><td> ' .$ code ->getClient ()->getName ().'</td><td>Authorization Code</td><td></td></tr> ' ;
69
+ echo '<tr><td> ' .$ this -> escape ( $ code ->getClient ()->getName () ).'</td><td>Authorization Code</td><td></td></tr> ' ;
70
70
}
71
71
foreach ($ this ->tokens as $ token ) {
72
- echo '<tr><td> ' .$ token ->getClient ()->getName ().'</td><td> ' ;
72
+ echo '<tr><td> ' .$ this -> escape ( $ token ->getClient ()->getName () ).'</td><td> ' ;
73
73
switch ($ token ->getType ()) {
74
74
case MIDAS_OAUTH_TOKEN_TYPE_ACCESS :
75
75
echo 'Access token ' ;
78
78
echo 'Refresh token ' ;
79
79
break ;
80
80
default :
81
- echo $ token ->getType ();
81
+ echo $ this -> escape ( $ token ->getType () );
82
82
break ;
83
83
}
84
- echo '</td><td><a class="deauthorizeTokenLink" type=" ' .$ token ->getType ().'" element=" ' .$ token ->getKey (
85
- ).'"> ' .'Deauthorize</a></td></tr> ' ;
84
+ echo '</td><td><a class="deauthorizeTokenLink" type=" ' .$ this -> escape ( $ token ->getType ()) .'" element=" ' .$ this -> escape ( $ token ->getKey (
85
+ )) .'"> ' .'Deauthorize</a></td></tr> ' ;
86
86
}
87
87
?>
88
88
</tbody>
118
118
</div>
119
119
</div>
120
120
121
- <div class="userIdValue" style="display: none;"><?php echo $ this ->user ->getKey () ?> </div>
121
+ <div class="userIdValue" style="display: none;"><?php echo $ this ->escape ( $ this -> user ->getKey ()); ?> </div>
You can’t perform that action at this time.
0 commit comments