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

more hard coded 'http' in macros.vm

    XMLWordPrintable

Details

    • macros.vm, https, patch

    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

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

            Dates

              Created:
              Updated:
              Resolved: