Sfoglia il codice sorgente

Merge pull request #1645 from karthikkasturi/master

fix regex check for short url in response
El RIDO 10 mesi fa
parent
commit
2b8b5d71d2
3 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 0
      CHANGELOG.md
  2. 0 1
      js/test/PasteStatus.js
  3. 0 1
      tpl/shortenerproxy.php

+ 1 - 0
CHANGELOG.md

@@ -6,6 +6,7 @@
 * FIXED: Allow copying the shortened link after using a URL shortener (#1624)
 * ADDED: Auto shorten URLs with config option `shortenbydefault` (#1627)
 * ADDED: Added `shortenviashlink` endpoint with an `shlink` configuration section 
+* FIXED: Check for quotes and conical braces when extracting short url (#1644)
 
 ## 2.0.0 (2025-07-28)
 * ADDED: Error logging in database and filesystem backend (#1554)

+ 0 - 1
js/test/PasteStatus.js

@@ -149,7 +149,6 @@ describe('PasteStatus', function () {
                         '<html lang="en">\n' +
                         '\t<head>\n' +
                         '\t\t<meta charset="utf-8" />\n' +
-                        '\t\t<meta http-equiv="Content-Security-Policy" content="default-src \'none\'; base-uri \'self\'; form-action \'none\'; manifest-src \'self\'; connect-src * blob:; script-src \'self\' \'unsafe-eval\'; style-src \'self\'; font-src \'self\'; frame-ancestors \'none\'; img-src \'self\' data: blob:; media-src blob:; object-src blob:; sandbox allow-same-origin allow-scripts allow-forms allow-popups allow-modals allow-downloads">\n' +
                         '\t\t<meta name="robots" content="noindex" />\n' +
                         '\t\t<meta name="google" content="notranslate">\n' +
                         '\t\t<title>PrivateBin</title>\n' +

+ 0 - 1
tpl/shortenerproxy.php

@@ -4,7 +4,6 @@ use PrivateBin\I18n;
 <html lang="<?php echo I18n::getLanguage(); ?>"<?php echo I18n::isRtl() ? ' dir="rtl"' : ''; ?>>
 	<head>
 		<meta charset="utf-8" />
-		<meta http-equiv="Content-Security-Policy" content="<?php echo I18n::encode($CSPHEADER); ?>">
 		<meta name="robots" content="noindex" />
 		<meta name="google" content="notranslate">
 		<title><?php echo I18n::_($NAME); ?></title>