[geeklog-cvs] geeklog: Added call to PLG_itemPreSave to support the CAPTCHA pl...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat May 1 07:18:25 EDT 2010


changeset 7905:f14683c3b6e8
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/f14683c3b6e8
user: Dirk Haun <dirk at haun-online.de>
date: Sat May 01 12:06:19 2010 +0200
description:
Added call to PLG_itemPreSave to support the CAPTCHA plugin (feature request #0001091)

diffstat:

 plugins/calendar/functions.inc |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r e8e4b4ed59f1 -r f14683c3b6e8 plugins/calendar/functions.inc
--- a/plugins/calendar/functions.inc	Sat May 01 12:05:35 2010 +0200
+++ b/plugins/calendar/functions.inc	Sat May 01 12:06:19 2010 +0200
@@ -510,6 +510,16 @@
         COM_displayMessageAndAbort($result, 'spamx', 403, 'Forbidden');
     }
 
+    $msg = PLG_itemPreSave('calendar', $A);
+    if (! empty($msg)) {
+        $retval .= COM_siteHeader('menu', $LANG_CAL_1[27])
+            . COM_errorLog($msg, 2)
+            . plugin_submit_calendar($A['calendar_type'])
+            . COM_siteFooter();
+
+        return $retval;
+    }
+
     $A['description'] = addslashes (htmlspecialchars (COM_checkWords ($A['description'])));
     $A['address1'] = addslashes (strip_tags (COM_checkWords ($A['address1'])));
     $A['address2'] = addslashes (strip_tags (COM_checkWords ($A['address2'])));



More information about the geeklog-cvs mailing list