-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible format string issue in Slim\Http\UploadedFile::moveTo() #2433
Comments
I don't see an actual problem here? |
llvdl
added a commit
to llvdl/Slim
that referenced
this issue
Jul 9, 2018
It seems to be confusing. I think the author meant to use numbered placeholders, not padded strings. I propose just using plain placeholders (%s). I have added a PR. |
akrabat
added a commit
that referenced
this issue
Jul 15, 2018
llvdl
added a commit
to llvdl/Slim
that referenced
this issue
Jul 17, 2018
As the PR was merged to alter behaviour, and no more info or comments have been added by @sjinks, I'm closing this issue. If there is any more info, please add it and it can be reopened if necessary. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the documentation,
1
and2
in%1s
and%2s
are width specifiers (that is, the minimum length of the converted string).That is, %1s will give the string with at least one character, %2s with at least to characters, that is:
But other than with empty or single letter file names, this is probably meaningless.
As far as I understand, the original intent was to facilitate internationalization to make sure that the first parameter is always the name of the source file, and the second one is the destination. If so, the correct syntax will be
E.g.,
The text was updated successfully, but these errors were encountered: