Merge pull request #1645 from karthikkasturi/master

fix regex check for short url in response
This commit is contained in:
El RIDO
2025-09-11 20:55:34 +02:00
committed by GitHub
3 changed files with 1 additions and 2 deletions

View File

@@ -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)

View File

@@ -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' +

View File

@@ -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>