Log message #4158577

# At Username Text
# Jul 12th 2018, 17:05 chris-andre @josbeir Thank for the article, I will have a look and see if it meet my needs to header/footer, paging etc.
# Jul 12th 2018, 17:02 flavius yeah, last one was cached
# Jul 12th 2018, 17:02 chris-andre img/cake.power.gif >>>HTTP/1.1 304 Not Modified Server: nginx/1.14.0 (Ubuntu) Date: Thu, 12 Jul 2018 16:59:57 GMT Last-Modified: Tue, 10 Jul 2018 15:02:56 GMT Connection: keep-alive ETag: "5b44caa0-c9"
# Jul 12th 2018, 17:01 chris-andre user/img >>>HTTP/1.1 200 OK Server: nginx/1.14.0 (Ubuntu) Date: Thu, 12 Jul 2018 16:59:33 GMT Content-Type: image/gif Content-Length: 201 Connection: keep-alive Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Accept-Ranges: bytes X-DEBUGKIT-ID: 3eb7bae3-0638-4f5d-a4d5-52fc34e894b9
# Jul 12th 2018, 17:01 flavius but also make sure the browser caches the "real" image :P so just check that little box to disable caching while dev tools is open
# Jul 12th 2018, 17:00 josbeir => https://www.smashingmagazine.com/2015/01/designing-for-print-with-css/
# Jul 12th 2018, 16:59 flavius as in look at the 'response headers'
# Jul 12th 2018, 16:59 chris-andre Allright. I used som CSS to repeat table head and break pages, but it is not as flexible as I need.
# Jul 12th 2018, 16:58 flavius @chris-andre see exactly what the differences are between a "normal" image versus your url
# Jul 12th 2018, 16:57 josbeir the css way
# Jul 12th 2018, 16:57 chris-andre If I was just going to convert a page, sure.
# Jul 12th 2018, 16:57 josbeir you can do headers with wkhtml2pdf
# Jul 12th 2018, 16:57 chris-andre I need to set headers, footers, addPages etc. That's why I'm "leaving" CakePdf, and also why I don't use wkhtmltopdf.
# Jul 12th 2018, 16:55 flavius how involved are you with TCPDF? maybe use @josbeir’s suggestion
# Jul 12th 2018, 16:55 flavius lol
# Jul 12th 2018, 16:55 chris-andre PDF is at least rendered, but without the image.
# Jul 12th 2018, 16:54 chris-andre It seems like setting extension was one step forward @flavius
# Jul 12th 2018, 16:53 josbeir also, make your life more easy and use wkhtmltopdf :P
# Jul 12th 2018, 16:49 chris-andre Thanks. I will give i a try :slightly_smiling_face:
# Jul 12th 2018, 16:48 flavius maybe TCPDF looks at extensions :slightly_smiling_face:
# Jul 12th 2018, 16:47 flavius to the route
# Jul 12th 2018, 16:47 flavius `<img src="/users/img.jpg" />`
# Jul 12th 2018, 16:47 flavius try adding a "fake" extension
# Jul 12th 2018, 16:47 chris-andre When using google dev. tool, it says response content is image, and shows image as expected. So thats why I think image is rendered properly.
# Jul 12th 2018, 16:46 josbeir or do i need to set all paths in the cli argument
# Jul 12th 2018, 16:45 josbeir can paths be sephpcs phpcs.xml.dist ?
# Jul 12th 2018, 16:45 flavius yeah, withFile does set the type and the size internally
# Jul 12th 2018, 16:45 chris-andre I will try what you suggested. If it doesn't help, it might be some conflict between cakephp and TCPDF with mb_internal_encoding().
# Jul 12th 2018, 16:44 flavius oh, my image was in the database, not saved on disk
# Jul 12th 2018, 16:41 chris-andre I thought `$this->response->withFile()` did that?
# Jul 12th 2018, 16:41 flavius thats how i do it, but not with TCPDF
# Jul 12th 2018, 16:41 flavius ``` // show image return $response ->withType(...mime...) ->withLength(...size...) ->withStringBody(...contents...); ```
# Jul 12th 2018, 16:37 flavius are you sending the correct headers as well?
# Jul 12th 2018, 16:24 chris-andre It's probably not cakephp topic, but giving it a shot if someone has solved something like this before.
# Jul 12th 2018, 16:22 chris-andre Hi. I'm using TCPDF. When adding `<img src="/img/cake.power.gif" />` it works, but when I use `<img src="/users/img" />`it doesn't show the image. img() action in UsersController has `return $this->response->withFile('{path_to_file}')`. When I navigate to /users/img, the image is shown as expected. Any ideas?
# Jul 12th 2018, 16:16 mdunham_ hola amigos
# Jul 12th 2018, 15:42 camdenbassett a-password-multiple-times
# Jul 12th 2018, 15:42 camdenbassett after doing a little more research, it looks like it might be a better idea to just switch all the passwords to a single stronger hash rather than running them through multiple hashes. Basically the hash might only be as strong as the weakest hash in the chain https://softwareengineering.stackexchange.com/questions/115406/is-it-more-secure-to-hash-
# Jul 12th 2018, 15:38 camdenbassett no, as far as I know no-one has gotten the DB. Just wanting to upgrade it before there is trouble.
# Jul 12th 2018, 15:38 ricksaccous if you assume someone did already then it's not safe because someone has the unhashed passwords anyway
# Jul 12th 2018, 15:37 ricksaccous well if someone already compromised your database, yes, if not it's fine, lol