• Resolved alexproca

    (@alexproca)


    			// action
    			$buffer = str_replace('action=\'https://' . $_SERVER['HTTP_HOST'], 'action=\'//' . $_SERVER['HTTP_HOST'], $buffer);
    			$buffer = str_replace('action="https://' . $_SERVER['HTTP_HOST'], 'action="//' . $_SERVER['HTTP_HOST'], $buffer);
    			$buffer = str_replace('action=\'http://' . $_SERVER['HTTP_HOST'], 'action=\'//' . $_SERVER['HTTP_HOST'], $buffer);
    			$buffer = str_replace('action="http://' . $_SERVER['HTTP_HOST'], 'action="//' . $_SERVER['HTTP_HOST'], $buffer);
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Please tell me a little bit more about this problem.

    Thread Starter alexproca

    (@alexproca)

    Previous rules are good for some forms inserted by various plugins. For example I had a subscribe form and the action url is using http schema.

    Additionally I added this gravatar rule too.

    			
    //gravatar
    $buffer = preg_replace('|http(s)?://(.+).gravatar.com|i', 'https://$2.gravatar.com', $buffer);
    

    Hi, I have the same issue too. And I have add the same codes. Looking forward to update.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Pull request] remove schema from action’ is closed to new replies.