Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2524

more hard coded 'http' in macros.vm

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5 M2
    • Fix Version/s: 1.5 RC1
    • Labels:
      None
    • keywords:
      macros.vm, https, patch
    • Similar issues:

      Description

      Here is a fix for removing hard coded 'http' through ${request.scheme}

      — macros.vm.orig 2008-06-27 15:04:58.000000000 +0200
      +++ macros.vm 2008-06-27 15:08:17.000000000 +0200
      @@ -162,8 +162,8 @@

        1. Displays the status for the given AIM id
          ##
          #macro(aim $id)
          -#set($onurl = "http://${request.serverName}${xwiki.getSkinFile('aimonline.gif')}")
          -#set($offurl = "http://${request.serverName}${xwiki.getSkinFile('aimoffline.gif')}")
          +#set($onurl = "${request.scheme}://${request.serverName}${xwiki.getSkinFile('aimonline.gif')}")
          +#set($offurl = "${request.scheme}://${request.serverName}${xwiki.getSkinFile('aimoffline.gif')}")
          <img border="0" src="http://big.oscar.aol.com/nvludo?on_url=${onurl}&off_url=${offurl}" alt="Online detector"></a>
          #end
          ##

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            steffen.zieger Steffen Zieger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: