Projet

Général

Profil

« Précédent | Suivant » 

Révision c3e77841

Ajouté par jim-p il y a plus de 9 ans

Encode interface/VIP descriptions before displaying them on the GRE and GIF pages also;
While here, the GRE page was missing IP aliases from its list of bind IPs, add it in.

Voir les différences:

usr/local/www/interfaces_gre_edit.php
148 148
						$carplist = get_configured_carp_interface_list();
149 149
						foreach ($carplist as $cif => $carpip)
150 150
							$portlist[$cif] = $carpip." (".get_vip_descr($carpip).")";
151
						$aliaslist = get_configured_ip_aliases_list();
152
						foreach ($aliaslist as $aliasip => $aliasif)
153
							$portlist[$aliasif.'|'.$aliasip] = $aliasip." (".get_vip_descr($aliasip).")";
151 154
					  	foreach ($portlist as $ifn => $ifinfo) {
152 155
							echo "<option value=\"{$ifn}\"";
153 156
							if ($ifn == $pconfig['if'])
154 157
								echo " selected=\"selected\"";
155
							echo ">{$ifinfo}</option>";
158
							echo ">" . htmlspecialchars($ifinfo) . "</option>\n";
156 159
						}
157 160
		      		?>
158 161
                    </select>

Formats disponibles : Unified diff