[geeklog-cvs] geeklog-1.3/public_html submit.php,1.70,1.71

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat Aug 7 11:21:21 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv31908

Modified Files:
	submit.php 
Log Message:
On event submissions, don't save URLs that are only 'http://' without an actual URL.


Index: submit.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/submit.php,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** submit.php	6 Aug 2004 08:55:36 -0000	1.70
--- submit.php	7 Aug 2004 15:21:18 -0000	1.71
***************
*** 552,557 ****
                  if ($pos === false) {
                      $A['url'] = 'http://' . $A['url'];
!                 }
!                 else {
                      $prot = substr ($A['url'], 0, $pos + 1);
                      if (($prot != 'http:') && ($prot != 'https:')) {
--- 552,556 ----
                  if ($pos === false) {
                      $A['url'] = 'http://' . $A['url'];
!                 } else {
                      $prot = substr ($A['url'], 0, $pos + 1);
                      if (($prot != 'http:') && ($prot != 'https:')) {
***************
*** 561,564 ****
--- 560,566 ----
                  $A['url'] = addslashes ($A['url']);
              }
+             if ($A['url'] == 'http://') {
+                 $A['url'] = '';
+             }
              if (empty($A['eid'])) {
                  $A['eid'] = COM_makesid();




More information about the geeklog-cvs mailing list