Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Backslashes in file_put_contents()

Aperta
#926 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
laravel, php
Ambito
backend

Direzione di ricerca

Start at line 12 of resources/views/components/pre-update.blade.php, linked in the issue, and inspect the file_put_contents() path used during the built-in update. Verify the update writes to the intended resources/views/update.blade.php path rather than creating a backslash-named file at the site root. Done means the intended file is written and no stray root-level file appears.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I was on 4.8.4. I opted in for the beta version and updated to the latest beta (4.9.0 21) with the built-in update feature.

Later I noticed a strange new file in my file system:

A new file named "resources\views\update.blade.php" appeared at the root of the site.

It turns out this line is the culprit, the backslashes should be forward slashes:

https://github.com/LinkStackOrg/LinkStack/blob/6489a95b75c57f3d5cb6065be8bc715585e5b525/resources/views/components/pre-update.blade.php#L12

The result is an extra file that shouldn't be there:

Image

MAMP PRO 6.9 on macOS 15.5, with Apache and PHP 8.2.13

Lingua principale
PHP
Stelle
3.9k
Fork
440
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LinkStackOrg/LinkStack

Tutte le issue di LinkStackOrg/LinkStack

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.