1 頁 (共 1 頁)

[問題]如何禁止用戶使用html code?

發表於 : 2002-07-24 21:24
Hirono
我已經在控制台禁止了用戶使用html code,
但他們竟然還可以用embed 等等的html code

有甚麼解求方法??
就此謝過!

發表於 : 2002-07-24 21:53
beowolf
禁止了用戶使用html code,就應該不能用啦..
你不會把 html 跟bbcode攪混了吧..

發表於 : 2002-07-24 21:56
beowolf
還有你關了html碼, 好像還是有幾個tag可以用.. 所以...

發表於 : 2002-07-24 23:35
Hirono
embed 在這個情況可以用嗎?

我試過允許用戶用html code, 但在"允許的html code"一欄甚麼也清走\r
還未能阻止.....

發表於 : 2002-07-25 18:20
Hirono
發現了問題所在 ^^":
我本身有裝這個外語言支持
http://phpbb-tw.net/phpbb/viewtopic.php?t=5244
當中對function_post.php / privmsg.php 的改動是\r
relapce:

代碼: 選擇全部

$html_entities_match = array('#&#', '#<#', '#>#'); 
$html_entities_replace = array('&', '<', '>');  
with:

代碼: 選擇全部

$html_entities_match = array("#<#", "#>#"); 
$html_entities_replace = array("<", ">"); 
我誤將之完全copy 上去. 今天才發現應該是用:

代碼: 選擇全部

$html_entities_replace = array(' & l t ; ', ' & g t ;');