Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Designing Better UX For Left-Handed People

      July 25, 2025

      This week in AI dev tools: Gemini 2.5 Flash-Lite, GitLab Duo Agent Platform beta, and more (July 25, 2025)

      July 25, 2025

      Tenable updates Vulnerability Priority Rating scoring method to flag fewer vulnerabilities as critical

      July 24, 2025

      Google adds updated workspace templates in Firebase Studio that leverage new Agent mode

      July 24, 2025

      Trump’s AI plan says a lot about open source – but here’s what it leaves out

      July 25, 2025

      Google’s new Search mode puts classic results back on top – how to access it

      July 25, 2025

      These AR swim goggles I tested have all the relevant metrics (and no subscription)

      July 25, 2025

      Google’s new AI tool Opal turns prompts into apps, no coding required

      July 25, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Laravel Scoped Route Binding for Nested Resource Management

      July 25, 2025
      Recent

      Laravel Scoped Route Binding for Nested Resource Management

      July 25, 2025

      Add Reactions Functionality to Your App With Laravel Reactions

      July 25, 2025

      saasykit/laravel-open-graphy

      July 25, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Sam Altman won’t trust ChatGPT with his “medical fate” unless a doctor is involved — “Maybe I’m a dinosaur here”

      July 25, 2025
      Recent

      Sam Altman won’t trust ChatGPT with his “medical fate” unless a doctor is involved — “Maybe I’m a dinosaur here”

      July 25, 2025

      “It deleted our production database without permission”: Bill Gates called it — coding is too complex to replace software engineers with AI

      July 25, 2025

      Top 6 new features and changes coming to Windows 11 in August 2025 — from AI agents to redesigned BSOD screens

      July 25, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»CodeSOD: ConVersion Version

    CodeSOD: ConVersion Version

    July 24, 2025

    Mads introduces today’s code sample with this line: ” this was before they used git to track changes”.

    Note, this is not to say that they were using SVN, or Mercurial, or even Visual Source Safe. They were not using anything. How do I know?

    /**
      * Converts HTML to PDF using HTMLDOC.
      * 
      * @param printlogEntry
      ** @param inBytes
      *            html.
      * @param outPDF
      *            pdf.
      * @throws IOException
      *             when error.
      * @throws ParseException
    */
    public void fromHtmlToPdfOld(PrintlogEntry printlogEntry, byte[] inBytes, final OutputStream outPDF) throws IOException, ParseException
    	{...}
    
    /**
     * Converts HTML to PDF using HTMLDOC.
     * 
     * @param printlogEntry
     ** @param inBytes
     *            html.
     * @param outPDF
     *            pdf.
     * @throws IOException
     *             when error.
     * @throws ParseException
     */
    public void fromHtmlToPdfNew(PrintlogEntry printlogEntry, byte[] inBytes, final OutputStream outPDF) throws IOException, ParseException
    	{...}
    

    Originally, the function was just called fromHtmlToPdf. Instead of updating the implementation, or using it as a wrapper to call the correct implementation, they renamed it to Old, added one named New, then let the compiler tell them where they needed to update the code to use the new implementation.

    Mads adds: “And this is just one example in this code. This far, I have found 5 of these.”

    [Advertisement]
    ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleElektroid – sample and MIDI device manager
    Next Article Il podcast di Marco’s Box – Puntata 208

    Related Posts

    News & Updates

    Trump’s AI plan says a lot about open source – but here’s what it leaves out

    July 25, 2025
    News & Updates

    Google’s new Search mode puts classic results back on top – how to access it

    July 25, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    ManageEngine Exchange Reporter Plus Vulnerability Allows Remote Code Execution

    Security

    NymVPN: Introducing a security-first decentralized VPN with a Mixnet flair

    News & Updates

    CVE-2025-45001 – React Native Keys Information Disclosure

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2024-40445 – Forkosh Mime Tex Directory Traversal Arbitrary Code Execution

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    CVE-2025-24759 – WordPress Business Directory Plugins SQL Injection Vulnerability

    July 16, 2025

    CVE ID : CVE-2025-24759

    Published : July 16, 2025, 12:15 p.m. | 5 hours, 59 minutes ago

    Description : Improper Neutralization of Special Elements used in an SQL Command (‘SQL Injection’) vulnerability in CMSJunkie – WordPress Business Directory Plugins WP-BusinessDirectory allows Blind SQL Injection. This issue affects WP-BusinessDirectory: from n/a through 3.1.3.

    Severity: 9.3 | CRITICAL

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    CVE-2025-3838 – “VMware Connect Unauthorized Access to Installer Credentials”

    April 21, 2025

    Alienware’s rumored laptop could be the first to feature NVIDIA’s revolutionary Arm-based APU

    June 3, 2025

    PowerToys, one of the best free apps on Windows 11, just got a major update

    April 1, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.