开发者

CodeIgniter URLs - replacing ( with (

I'm writing method that creates image file from URI segments. The problem is that when i type http://example.com/class/method/value1/value2/value ( 3 )/va开发者_开发技巧lue4

And after imagemagick processing, the image is:

Value1
Value2
Value ( 3 )
Value4

I get data in that way: $this->data = addslashes(urldecode($data));

Also then I manually change code for generating image to

$image->annotateImage($draw, 20, 20, 0, "value ( 3 )");

It's fine.


html_entity_decode(urldecode($data));

that done the dirty work for me. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜