Recherche avancée

Médias (0)

Mot : - Tags -/alertes

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (66)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (6640)

  • How to properly escape shell arguments on Windows ?

    20 novembre 2016, par PeeHaa

    I am trying to properly escape user supplied data for a command line script. Normally I would use escapeshellarg, however this will simply not work because it’s breaks the eventual command line in glorious ways.

    The use case is trying to add meta data to videos using ffmpeg. A simplified and isolated problem case is the following command :

    ffmpeg -i in.mp4 -metadata author="My Name" out.mp4

    The author value is user supplied (My Name). I tried escaping only the user supplied part which resulted in :

    ffmpeg -i in.mp4 -metadata author=""My Name"" out.mp4

    Which results in the following ffmpeg error :

    Name : Invalid argument

    Next I tried escaping the entire flag (-metadata author="My Name") which results in :

    ffmpeg -i in.mp4 "-metadata author= My Name " out.mp4

    "Unrecognized option ’metadata author= My Name ’.

    Test cases :

    $flag = '-metadata author="%s"';

    var_dump(sprintf($flag, escapeshellarg('My Name')));
    var_dump(escapeshellarg(sprintf($flag, 'My Name')));

    Is there anything that will properly escape the user supplied data so that users cannot pass arbitrary flags to my command and that will make ffmpeg happy without having to do it manually with the risk of forgetting something and screwing it up ?

    Update

    I also tried escaping the entire flag value which works unless there is a double quote inside the user supplied part :

    $flag = 'author="%s"';

    var_dump('-metadata ' . escapeshellarg(sprintf($flag, 'My Name')));
    var_dump('-metadata ' . escapeshellarg(sprintf($flag, 'My "Name"')));

    Which results in :

    -metadata "author= My Name "
    -metadata "author= My  Name  " // it eats my quotes
  • Piwik 3 Development Update #2 – Git master branch will become Piwik 3

    2 septembre 2016, par Piwik Core Team — Community, Development

    As mentioned in the Piwik 3 Development Update #1 we are actively working on the new major Piwik 3 release.

    This blog post is an announcement regarding an upcoming change on our Git repository.

    On October 4th CET, we will merge the current changes done for Piwik 3 from the “3.x-dev” branch into the “master“ branch across our Piwik projects and plugin repositories. While this is not important for most of our users, it can be a problem if you have installed and deployed Piwik from git.

    • If you are currently on “master” branch and want to continue using Piwik 2, you need to checkout the newly created “2.x-dev” branch instead of “master” anytime within the next 4 weeks. Don’t forget to update your scripts and scheduled tasks (cronjobs) that may reference “master” branch.
    • If you want to receive an early version of Piwik 3 via git automatically, you won’t have to change anything.

    The final Piwik 3 release will be ready before the end of the year. If you want to give it a try, you can either use Piwik from Git and check out the “3.x-dev” branch, or download Piwik 3 from GitHub.

    Until our next Piwik 3 dev update, Happy analysis !

  • Merge commit ’6d3ea1957f681b3bf9c752e6d21a501cc8d4180d’

    16 décembre 2013, par Michael Niedermayer
    Merge commit ’6d3ea1957f681b3bf9c752e6d21a501cc8d4180d’
    

    * commit ’6d3ea1957f681b3bf9c752e6d21a501cc8d4180d’ :
    Bump major of libavfilter for reference counted buffer API changes.

    Conflicts :
    libavfilter/version.h

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] doc/APIchanges
    • [DH] libavfilter/version.h