Applied for a job and found an edge case in their code they had not covered
A job applicant encountered an edge case in a company's code related to URL encoding. The issue arose when the applicant's email, which included a plus sign, was sent as a query parameter, causing an error. After correcting the URL by encoding the plus sign, the applicant was able to schedule an interview successfully.
- ▪The applicant applied for a developer role and used a unique email format for tracking purposes.
- ▪The company's test link included the applicant's email as a query parameter, which caused an error due to URL encoding issues.
- ▪The applicant learned that the plus sign in query parameters is interpreted as a space, leading to incorrect email parsing.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 473910) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Patrick Wendo Posted on May 19 Applied for a job and found an edge case in their code they had not covered #urlencoding #webdev I applied to a company for developer role. However, when I usually apply for jobs I usually add the company name to my email. For instance [email protected] becomes [email protected]. Totally valid way to keep track of who perhaps leaked your email.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).