参数中的空格 [英] Spaces in parameter

查看:91
本文介绍了参数中的空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道使用一些东西是非常不正确的(我想我知道)

就像

< a href =" bla.php?title = hello world"> Hello World< / a>

但是我可以安全地执行此操作吗?

我有一台运行Blogger的Apache Linux服务器,并且我想找到

a的方式让用户去我的论坛,但要自动

插入一个新线程标题的链接。请参阅

< http://blog.outer-court.com>作为一个例子,当你点击

讨论时你会被带到< http://blog.outer-court.com/forum/>这是

a PHP脚本。


我没有任何方法(我相信)让页面生成

Blogger模板并使用正确的%20编码

空格包含标题。我确信上面的内容可以在IExplorer中使用,就像许多破碎的HTML一样。


任何帮助表示赞赏。


-

Google Blogoscoped
http://blog.outer-court.com

I know it''s terribly incorrect (well I think I know) to use something
like
<a href="bla.php?title=hello world">Hello World</a>
but can I safely do this?

I have an Apache Linux server with Blogger running, and I want to find
a way to make users go to my discussion forum, but to automatically
insert a link into the title of a new thread. Please see
<http://blog.outer-court.com> as an example, and when you click on
discuss you are taken to <http://blog.outer-court.com/forum/> which is
a PHP script.

I do not have any method (I believe) to let the pages be generated by
the Blogger template and include the title with correctly %20 encoded
spaces. I''m sure above will work in IExplorer as does many broken HTML.

Any help appreciated.

--
Google Blogoscoped
http://blog.outer-court.com

推荐答案



" Philipp Lenssen" <在** @ outer-court.com>在消息中写道

新闻:2j ************ @ uni-berlin.de ...

"Philipp Lenssen" <in**@outer-court.com> wrote in message
news:2j************@uni-berlin.de...
我知道它非常糟糕不正确(我想我知道)使用
< a href =" bla.php?title = hello world"> Hello World< / a>
我安全地这样做了吗?

我有一个运行Blogger的Apache Linux服务器,我想找到一种方法让用户去我的论坛,但要自动
在新线程的标题中插入一个链接。请参阅
< http://blog.outer-court.com>作为一个例子,当你点击
讨论时,你将被带到< http://blog.outer-court.com/forum/>这是一个PHP脚本。

我没有任何方法(我相信)让这些页面由Blogger模板生成并包含正确的标题%20编码空间。
PHP确实有这样的方法,虽然我不记得它。

看起来就像你在PHP论坛中要问的那样。

我肯定上面会在IExplorer中工作,就像许多破碎的HTML一样。
I know it''s terribly incorrect (well I think I know) to use something
like
<a href="bla.php?title=hello world">Hello World</a>
but can I safely do this?

I have an Apache Linux server with Blogger running, and I want to find
a way to make users go to my discussion forum, but to automatically
insert a link into the title of a new thread. Please see
<http://blog.outer-court.com> as an example, and when you click on
discuss you are taken to <http://blog.outer-court.com/forum/> which is
a PHP script.

I do not have any method (I believe) to let the pages be generated by
the Blogger template and include the title with correctly %20 encoded
spaces. PHP certainly does have such a method, though I don''t recall it offhand.
Seems like the kind of thing you would ask, though, in a PHP forum.
I''m sure above will work in IExplorer as does many broken HTML.




这不是HTML问题,它是'关于URI标准。



This isn''t an HTML matter, it''s about the URI standard.


Philipp Lenssen写道:
Philipp Lenssen wrote:
我知道它非常不正确(好吧)我想我知道)使用
< a href =" bla.php?title = hello world"> Hello World< / a>


这是不正确的,因为它违反了规范。

但是我能安全地做到这一点吗?
I know it''s terribly incorrect (well I think I know) to use something
like
<a href="bla.php?title=hello world">Hello World</a>
It''s incorrect insofar as it''s a violation of the spec.
but can I safely do this?




Dunno。


-

Jock



Dunno.

--
Jock


/ Philipp Lenssen /:
/Philipp Lenssen/:
我知道使用像
< a href ="这样的东西非常不正确(我想我知道) bla.php?title = hello world"> Hello World< / a>
但是我能安全地做到吗?
I know it''s terribly incorrect (well I think I know) to use something
like
<a href="bla.php?title=hello world">Hello World</a>
but can I safely do this?




一个聪明的UA会自动编码在制作

请求之前的空格,但AFAIK不是它的一方要求,所以如果你想要安全地播放它 - 只需编码指定的文本。 br />

-

Stanimir



A clever UA would automatically encode the spaces prior making the
request, but AFAIK it is not a requirement on its side, so if you
want to play it safe - just encode the specified text.

--
Stanimir


这篇关于参数中的空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆