CodeIgniter4 icon indicating copy to clipboard operation
CodeIgniter4 copied to clipboard

bug-form_open_multipart

Open startbbs opened this issue 9 years ago • 4 comments

<?php echo form_open_multipart('user/login',['class'=>'form']);?> when I use form_open_multipart, it would create the follow code <form action="http://127.0.0.1/user/login" class="form" enctype="multipart&#x2F;form-data" method="post" accept-charset="utf-8">

please note the enctype, '/' was changed to &#x2F;

startbbs avatar Dec 30 '16 01:12 startbbs

I give a try to fix it at #351

samsonasik avatar Jan 01 '17 04:01 samsonasik

Hi @samsonasik

I Think that this is not a issue.

The form works and the file is upload succesfully.

All attributes are being escaped using escapeHtmlAttr function from Zend Escaper Library.

Please look this https://framework.zend.com/manual/2.1/en/modules/zend.escaper.escaping-html-attributes.html

davidgv88 avatar Jan 05 '17 20:01 davidgv88

Ok, closing #351 ;)

samsonasik avatar Jan 06 '17 03:01 samsonasik

Yup, even though it looks strange, it all works as expected in all of my tests.

lonnieezell avatar Jan 09 '17 05:01 lonnieezell