开发者

CodeIgniter URLs - replacing ( with (

开发者 https://www.devze.com 2023-02-13 00:54 出处:网络
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

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

精彩评论

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

关注公众号