rpms/gallery2/F-9 gallery2-2.3-captcha.patch, NONE, 1.1 gallery2-2.3-smtp.patch, NONE, 1.1
Jon Ciesla
limb at fedoraproject.org
Thu Jun 4 13:55:33 UTC 2009
- Previous message (by thread): rpms/gallery2/F-9 README.fedora.Gallery2, 1.5, 1.6 gallery2.spec, 1.18, 1.19 sources, 1.9, 1.10
- Next message (by thread): rpms/rhythmbox/F-11 .cvsignore, 1.52, 1.53 rhythmbox.spec, 1.247, 1.248 sources, 1.54, 1.55 rb-disable-power-plugin-by-default.patch, 1.1, NONE rb-sj-metadata-gvfs-crasher.patch, 1.1, NONE rb-wknc-urls.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: limb
Update of /cvs/pkgs/rpms/gallery2/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13297
Added Files:
gallery2-2.3-captcha.patch gallery2-2.3-smtp.patch
Log Message:
Patches.
gallery2-2.3-captcha.patch:
--- NEW FILE gallery2-2.3-captcha.patch ---
--- modules/core/classes/GallerySession.class~ 2009-05-21 09:03:54.000000000 -0500
+++ modules/core/classes/GallerySession.class 2009-05-21 09:03:54.000000000 -0500
@@ -27,0 +28,3 @@
+//BZ 501871, captcha fix.
+GalleryCoreApi::requireOnce('modules/core/classes/GalleryTranslator.class');
+
gallery2-2.3-smtp.patch:
--- NEW FILE gallery2-2.3-smtp.patch ---
--- lib/smtp/smtp.php~ 2008-10-18 02:15:42.000000000 -0500
+++ lib/smtp/smtp.php 2009-05-21 07:14:59.000000000 -0500
@@ -42,14 +42,15 @@
- if (isset($headers)) {
- $headers = rtrim($headers);
-
- // Make sure there are no bare linefeeds in the headers
- $headers = preg_replace('#(?<!\r)\n#si', "\r\n", $headers);
-
- if (preg_match('#^cc:\s*(.*?)\s*$#mi', $headers, $match)) {
- $cc = split(', *', $match[1]);
- }
- if (preg_match('#^bcc:\s*(.*?)\s*$#mi', $headers, $match)) {
- $bcc = split(', *', $match[1]);
- $headers = preg_replace('#^bcc:.*$#mi', '', $headers);
- }
- }
+ /// JOEL
+// if (isset($headers)) {
+// $headers = rtrim($headers);
+//
+// // Make sure there are no bare linefeeds in the headers
+// $headers = preg_replace('#(?<!\r)\n#si', "\r\n", $headers);
+//
+// if (preg_match('#^cc:\s*(.*?)\s*$#mi', $headers, $match)) {
+// $cc = split(', *', $match[1]);
+// }
+// if (preg_match('#^bcc:\s*(.*?)\s*$#mi', $headers, $match)) {
+// $bcc = split(', *', $match[1]);
+// $headers = preg_replace('#^bcc:.*$#mi', '', $headers);
+// }
+// }
@@ -68 +69,10 @@
- list ($config['smtp.host'], $port) = array_merge(explode(':', $config['smtp.host']), array(25));
+// list ($config['smtp.host'], $port) = array_merge(explode(':', $config['smtp.host']), array(25));
+// JDY JOEL YOUNG FIX FROM http://blog.bonetree.net/2008/10/configuring-gallery2-to-send-email-using-gmail/
+ $url_info = parse_url($config['smtp.host']);
+ $config['smtp.host'] = '';
+ if( isset($url_info['scheme']) ) {
+ $config['smtp.host'] = $url_info['scheme'].'://';
+ }
+ $config['smtp.host'] .= $url_info['host'];
+ $port = ( isset($url_info['port']) ) ? $url_info['port'] : 25;
+
- Previous message (by thread): rpms/gallery2/F-9 README.fedora.Gallery2, 1.5, 1.6 gallery2.spec, 1.18, 1.19 sources, 1.9, 1.10
- Next message (by thread): rpms/rhythmbox/F-11 .cvsignore, 1.52, 1.53 rhythmbox.spec, 1.247, 1.248 sources, 1.54, 1.55 rb-disable-power-plugin-by-default.patch, 1.1, NONE rb-sj-metadata-gvfs-crasher.patch, 1.1, NONE rb-wknc-urls.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list