Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70752 Details for
Bug 108394
squirrelmail 1.4.5 uses array_shift in a wrong way (imap_messages.php)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that fixes both bugs
rfc822header-fix.patch (text/plain), 1.23 KB, created by
Bjarke Istrup Pedersen (RETIRED)
on 2005-10-15 15:18:20 UTC
(
hide
)
Description:
Patch that fixes both bugs
Filename:
MIME Type:
Creator:
Bjarke Istrup Pedersen (RETIRED)
Created:
2005-10-15 15:18:20 UTC
Size:
1.23 KB
patch
obsolete
>diff -aurp old/squirrelmail/class/mime/Rfc822Header.class.php new/squirrelmail/class/mime/Rfc822Header.class.php >--- old/squirrelmail/class/mime/Rfc822Header.class.php 2005-02-07 00:33:29.000000000 +0000 >+++ new/squirrelmail/class/mime/Rfc822Header.class.php 2005-10-15 21:17:31.000000000 +0000 >@@ -506,7 +506,8 @@ class Rfc822Header { > * that function? > */ > function parsePriority($value) { >- $value = strtolower(array_shift(split('/\w/',trim($value)))); >+ $aValue = split('/\w/',trim($sValue)); >+ $value = strtolower(array_shift($aValue)); > if ( is_numeric($value) ) { > return $value; > } >diff -aurp old/squirrelmail/functions/imap_messages.php new/squirrelmail/functions/imap_messages.php >--- old/squirrelmail/functions/imap_messages.php 2005-04-16 17:45:38.000000000 +0000 >+++ new/squirrelmail/functions/imap_messages.php 2005-10-15 22:14:09.000000000 +0000 >@@ -477,7 +477,8 @@ function parseArray($read,&$i) { > * class/mime/Rfc822Header.php. > */ > function parsePriority($value) { >- $value = strtolower(array_shift(split('/\w/',trim($value)))); >+ $aValue=split('/\w/',trim($sValue)); >+ $value = strtolower(array_shift($aValue)); > if ( is_numeric($value) ) { > return $value; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 108394
:
70094
| 70752