Remove PHP Short Tags
-
Our environment does not support short tags, which are used in the following lines in options-admin.php:
<td><input type=”text” id=”shibboleth_superadmin_header” name=”shibboleth_superadmin[header]” value=”<?= $shib_super_admin[‘header’] ?>” style=”width: 100%” /></td>
<td><input type=”text” id=”shibboleth_superadmin_value” name=”shibboleth_superadmin[value]” value=”<?= $shib_super_admin[‘value’] ?>” style=”width: 100%” /></td>
<div class=”header”><h3>Site: <?=$site->site?></h3></div>As “<?=” is a shortcut for “<?php echo” this can easily be fix to support any generic php installation by updating the lines to the following:
<td><input type=”text” id=”shibboleth_superadmin_header” name=”shibboleth_superadmin[header]” value=”<?php echo $shib_super_admin[‘header’] ?>” style=”width: 100%” /></td>
<td><input type=”text” id=”shibboleth_superadmin_value” name=”shibboleth_superadmin[value]” value=”<?php echo $shib_super_admin[‘value’] ?>” style=”width: 100%” /></td>
<div class=”header”><h3>Site: <?php echo $site->site?></h3></div>More info: https://www.php.net/manual/en/ini.core.php#ini.short-open-tag
- The topic ‘Remove PHP Short Tags’ is closed to new replies.