]> git.p6c8.net - jirafeau/jirafeau.git/blobdiff - index.php
More character scaping on indes and install.
[jirafeau/jirafeau.git] / index.php
index 4881c51517a29d050153513f24ac7fe3876ccade..74c68a059aeb79e83cb90076b7c13062475f37c2 100644 (file)
--- a/index.php
+++ b/index.php
@@ -158,7 +158,7 @@ if ($cfg['download_password_requirement'] === 'generated') {
     echo '<tr><td><label for="input_key">' . t('PSW') . ':' . '</label></td>';
     echo '<td><input type="password" name="key" id="input_key" autocomplete = "new-password"';
     if ($cfg['download_password_policy'] === 'regex') {
-        echo ' pattern="' . substr($cfg['download_password_policy_regex'], 1, strlen($cfg['download_password_policy_regex']) - 2) . '"'; //remove php delimiters
+        echo ' pattern="' . jirafeau_escape(substr($cfg['download_password_policy_regex'], 1, strlen($cfg['download_password_policy_regex']) - 2)) . '"'; //remove php delimiters
     }
     if ($cfg['download_password_requirement'] === 'required') {
         echo ' required';

patrick-canterino.de