Pete Freitag

1.2K posts

Pete Freitag banner
Pete Freitag

Pete Freitag

@pfreitag

Owner of @Foundeo Inc. a ColdFusion / Java Consulting and Products Company. Focused on web app security.

NY Beigetreten Mayıs 2008
535 Folgt2.1K Follower
Angehefteter Tweet
Pete Freitag
Pete Freitag@pfreitag·
Posted slides and examples for my #intothebox talk: Continuos Integration Zero to Infinity. It features lots of different ways ColdFusion developers can use CI: petefreitag.com/item/902.cfm
GIF
English
1
3
23
0
Pete Freitag
Pete Freitag@pfreitag·
@gamesover You have the time mask in dateFormat and then again in timeFormat
English
1
0
1
20
James Moberg
James Moberg@gamesover·
I'm reviewing some ai-generated #ColdFusion. Anyone see anything wrong with this CFML? #smh dateAdded = isDate(row.DateAdded) ? dateFormat(row.DateAdded, "yyyy-mm-dd hh:nn:ss") & " " & timeFormat(row.DateAdded, "HH:nn:ss") : row.DateAdded;
English
3
0
1
63
Ryan Guill
Ryan Guill@ryanguill·
@pfreitag it struggles because it thinks in tokens not letters or words. look up the “strawberry problem”. there are ways around it if you really need to do it.
English
1
0
1
88
Pete Freitag
Pete Freitag@pfreitag·
Equally as amazing as what AI can do, is what AI struggles with. Who can explain this? Gotta love the Drafts too 😅
Pete Freitag tweet media
English
2
0
4
199
Pete Freitag
Pete Freitag@pfreitag·
@philkellr Beyond ensuring your following secure coding practices keep an eye on the security patches in the software you use. I built stack.watch for this purpose.
English
0
0
0
10
Philipp Keller
Philipp Keller@philkellr·
Builders who already validated your products: How do you deal with security? Security audits are too expensive. Are you just following "best practices" or is there another way?
English
29
0
30
6K
Pete Freitag
Pete Freitag@pfreitag·
For context I was asking for a list of three letter verbs, and it kept listing make
English
0
0
1
92
Pete Freitag
Pete Freitag@pfreitag·
New version of Fixinator out this week with the ability to scan ColdFusion / CFML code for compatibility issues. Hopefully this will help people upgrade from older versions of ColdFusion.
Pete Freitag tweet media
English
2
5
18
507
Pete Freitag
Pete Freitag@pfreitag·
@gamesover @hoyahaxa Ah I see, when the scope is dynamic, then I usually would write a few if statements, since there are not that many scopes to deal with.
English
2
0
0
152
James Moberg
James Moberg@gamesover·
@pfreitag @hoyahaxa Bracket notation is what I usually use, but what can you do when the scope (versus only the key) is dynamic?
English
1
0
0
142
James Moberg
James Moberg@gamesover·
I just realized that many of my #ColdFusion unsafe evaluate() functions can be replaced with structget(). stackoverflow.com/a/25278540/693… This isn't mentioned or recommended in any #cfml documentation. Is it advisable? (I'm using it w/dynamic internal vars that have different scopes.)
English
2
0
3
136
Pete Freitag
Pete Freitag@pfreitag·
@gamesover @hoyahaxa Instead of structGet you can use bracket notation, form[key] or form[“checkbox” & key], etc. There is also bracket notation for accessing query cell values with a dynamic column name.
English
1
0
0
117
James Moberg
James Moberg@gamesover·
@hoyahaxa Yes, I avoid blindly passing all request variables (form/url/head) to evaluate & structget. I explicitly use a scoped "keyExists" member function to ensure only the correct scope is searched.
English
1
0
1
34
Pete Freitag
Pete Freitag@pfreitag·
Was surprised to learn that this spec was not published on April 1: ietf.org/archive/id/dra… send SQL to your server via a new http request method QUERY. What could go wrong? 🤔
English
1
0
3
117
Nolan Erck (he/him)
Nolan Erck (he/him)@nolanerck·
Is anybody still reading my Twitter stuffs? I'm hardly ever here. Hi.
English
3
0
3
69
Pete Freitag
Pete Freitag@pfreitag·
@daniel_nguyenx @levelsio @Cloudflare That sounds like a different kind of problem. With the setting at "Flexible" CloudFlare talks to your server with HTTP. People who hit the problem he is talking about have setup their server to use HTTPS only (port 80 closed). So they would hit the problem when setting up.
English
0
0
0
49
Daniel Nguyen
Daniel Nguyen@daniel_nguyenx·
@levelsio @Cloudflare Wow this might be the reason I occasionally run into SSL issue with Cloudflare. Going to set to full now
English
1
0
13
4.4K
@levelsio
@levelsio@levelsio·
99% of the problems me and my friends have with @Cloudflare is it defaults the SSL setting to Flexible Then when you change it to Full everything always suddenly works? Full should be the default?
@levelsio tweet media@levelsio tweet media
English
92
22
1K
176.4K
Pete Freitag
Pete Freitag@pfreitag·
@levelsio @Cloudflare One thing many people don't realize is that with just two lines of apache / nginx config, and one toggle in CloudFlare's dashboard you can ensure that your web server only handles requests coming from CloudFlare. It's called Authenticated Origin Pulls: petefreitag.com/blog/cloudflar…
English
0
0
0
37
Pete Freitag
Pete Freitag@pfreitag·
@gamesover Yeah good catch James, I think string would be a better type for the argument.
English
0
0
2
20
James Moberg
James Moberg@gamesover·
Hey @pfreitag booleanFormat() is your "Function of the Week". cfdocs.org/booleanformat CFDocs indicates "numeric", but ACF actually accepts "a number, boolean value, null, or an empty string" and Lucee accepts "any; a value that can be casted to a boolean".
English
1
0
1
68