Page MenuHomePhabricator

Create {{SERVERPROTOCOL}} or {{SECURESERVER}} variable for http/https detection
Closed, InvalidPublic

Description

Since secure server has changed, neither {{SERVER}} nor {{SERVERNAME}} provide a way to do this check. See [[MediaWiki:Loginend]] as a case.

  • {{SERVERPROTOCOL}} should return → http or → https

or, as an alternative proposal, it may be:

  • {{SECURESERVER| Text if secure | Text if normal }}

Version: unspecified
Severity: normal

Details

Reference
bz31531

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:58 PM
bzimport added a project: HTTPS.
bzimport set Reference to bz31531.
bzimport added a subscriber: Unknown Object (MLST).

Is the specific case for this for loginend?

We do want to avoid people throwing {{SERVERPROTOCOL}} into random pages and other messages forcing the parser cache and squid cache to be fragmented.

If the specific case for this is 'loginend' then perhaps instead of a magic word we could introduce a 'loginend-https' or 'loginend-secure' message.

There already is [[MediaWiki:Loginend-https]]

;) then WP should use it, and this bug seams to be INVALID.