Ignore:
Timestamp:
May 1, 2021, 10:01:34 AM (4 years ago)
Author:
chronos
Message:
  • Modified: http links replaced by https.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/News/News.php

    r899 r908  
    240240  }
    241241
    242   function ModifyContent(string $Content): string
     242  function ModifyContentPrefix(string $Content, string $Prefix): string
    243243  {
    244244    $Result = '';
     
    246246    // Make HTML link from URL
    247247    $I = 0;
    248     while (strpos($Content, 'http://') !== false)
    249     {
    250       $I = strpos($Content, 'http://');
     248    while (strpos($Content, $Prefix) !== false)
     249    {
     250      $I = strpos($Content, $Prefix);
    251251      if (($I > 0) and ($Content[$I - 1] != '"'))
    252252      {
     
    266266    $Result .= $Content;
    267267    return $Result;
     268  }
     269
     270  function ModifyContent(string $Content): string
     271  {
     272    return $this->ModifyContentPrefix($this->ModifyContentPrefix($Content, 'http://'), 'https://');
    268273  }
    269274
Note: See TracChangeset for help on using the changeset viewer.