git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8708
7612ce4b-ef26-0410-bec9-
ea0150e637f0
- Security: Fix possible XSS issues in src/webmail.php. [CAN-2005-0104]
- Fix undefined variables in src/webmail.php.
- 24hr clock format should include a leading 0.
- Security: Fix possible XSS issues in src/webmail.php. [CAN-2005-0104]
- Fix undefined variables in src/webmail.php.
- 24hr clock format should include a leading 0.
+ - Removed numeric keys for plugin array in config.php
Version 1.5.0
--------------------
Version 1.5.0
--------------------
$sub =~ s/\]\[['"]NAME['"]\]//;
$sub =~ s/.*\[//;
$theme_name[$sub] = $options[1];
$sub =~ s/\]\[['"]NAME['"]\]//;
$sub =~ s/.*\[//;
$theme_name[$sub] = $options[1];
- } elsif ( $options[0] =~ /^plugins\[[0-9]+\]/ ) {
+ } elsif ( $options[0] =~ /^plugins\[[0-9]*\]/ ) {
$sub = $options[0];
$sub =~ s/\]//;
$sub =~ s/^plugins\[//;
$sub = $options[0];
$sub =~ s/\]//;
$sub =~ s/^plugins\[//;
- $plugins[$sub] = $options[1];
+ if ($sub eq '') {
+ push @plugins, $options[1];
+ } else {
+ $plugins[$sub] = $options[1];
+ }
} elsif ( $options[0] =~ /^ldap_server\[[0-9]+\]/ ) {
$sub = $options[0];
$sub =~ s/\]//;
} elsif ( $options[0] =~ /^ldap_server\[[0-9]+\]/ ) {
$sub = $options[0];
$sub =~ s/\]//;
# all plugins are strings
for ( $ct = 0 ; $ct <= $#plugins ; $ct++ ) {
# all plugins are strings
for ( $ct = 0 ; $ct <= $#plugins ; $ct++ ) {
- print CF "\$plugins[$ct] = '$plugins[$ct]';\n";
+ print CF "\$plugins[] = '$plugins[$ct]';\n";
* the plugin directory name relative to the /plugins/ directory.
* For instance, for the 'sqclock' plugin, you'd put a line like
* the following.
* the plugin directory name relative to the /plugins/ directory.
* For instance, for the 'sqclock' plugin, you'd put a line like
* the following.
- * $plugins[0] = 'sqclock';
- * $plugins[1] = 'attachment_common';
+ * $plugins[] = 'sqclock';
+ * $plugins[] = 'attachment_common';
*/
// Add list of enabled plugins here
*/
// Add list of enabled plugins here
* sent and regular output to begin, which will majorly screw
* things up when we try to send more headers later.
*/
* sent and regular output to begin, which will majorly screw
* things up when we try to send more headers later.
*/
-?>
\ No newline at end of file