Dotclear


Ignore:
Timestamp:
07/25/13 09:12:41 (12 years ago)
Author:
akewea
Branch:
ticket#1404
Children:
1228:ead1a1502e66, 1406:ad3be5923d8b
Message:

ticket#1404 : correct case mistakes in URL protocol while adding a comment (when "Http://" is entered isntead of " http://", for example).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r1111 r1227  
    22672267           
    22682268          if ($cur->comment_site !== null && $cur->comment_site != '') { 
    2269                if (!preg_match('|^http(s?)://|',$cur->comment_site)) { 
     2269               if (!preg_match('|^http(s?)://|i',$cur->comment_site, $matches)) { 
    22702270                    $cur->comment_site = 'http://'.$cur->comment_site; 
     2271               }else{ 
     2272                    $cur->comment_site = strtolower($matches[0]).substr($cur->comment_site, strlen($matches[0])); 
    22712273               } 
    22722274          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map