Meta Refresh Tag 与 IE 5.0

IE 5.0 ?已经成古董了吧?

可是客户居然在用。动态生成的Meta Refresh标记里,URL是带查询参数的,而且参数是带空格的字符串,于是bug出现了:重定向后的页面里得到的查询参数空格后的东西都没了。

不能怪别人为什么还用IE 5。既然知道可能会有空格,为什么不做一下URL Encoding再生成Meta Refresh标记呢?

推卸一下责任:程序不是偶写的,偶只fix bug。

Ref: http://www.permadi.com/tutorial/urlEncoding

Leave a Reply

Your email address will not be published. Required fields are marked *

*

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.
For more help see http://daringfireball.net/projects/markdown/syntax

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>