Report any technical problems you discover and discuss solutions.

v3: upload file php check

Plus d'informations
il y a 10 ans 11 mois #2966 par jayaich
v3: upload file php check a été créé par jayaich
Hello,

Not sure if this is a bug or not; came across it when looking for something else.

In file 'website_code/php/import/fileupload.php', line 30 shows:
Code:
if(!strpos($php_check,"<?PHP")){

However, if this is a check to see if the uploaded file has php in it, then surely it should be using 'stripos' - check the string case-independently?


John.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 10 ans 11 mois #2971 par julten
Réponse de julten sur le sujet v3: upload file php check
Is it the case that stripos is PHP5, whereas strpos is an earlier version? I haven't made the change as our minimum requirements are php 4.3, but you are right: we shold check for lowercase as well.
Les utilisateur(s) suivant ont remercié: jayaich

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 0.151 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo