Compare commits

...

55 Commits

Author SHA1 Message Date
06d298dcb7 1.9.2 🚀 2016-04-18 20:02:44 +02:00
143f550ba6 Merge pull request #1814 from wallabag/dev
Wallabag 1.9.2
2016-04-18 20:01:56 +02:00
729c89aec4 Merge pull request #1866 from ymage/dev
Fix UTF-8 encoding before JSON export
2016-04-15 13:29:53 +02:00
af8b3b649e Factorize 2016-04-07 22:49:15 +02:00
7672a10776 Apply utf8_encode only on unrecognized encoded string 2016-04-07 22:35:37 +02:00
ccf59ac4ff Fix indentation 2016-04-05 20:07:55 +02:00
206c2a734e Fix UTF-8 encoding before JSON export 2016-04-05 20:03:57 +02:00
04ffc7fb11 Merge pull request #1825 from wallabag/v1.9.2-remove-swipe-actions
remove buggy swipe actions
2016-03-29 19:56:44 +02:00
2869f01804 remove buggy swipe actions 2016-03-29 19:34:04 +02:00
0dd043c19b Merge pull request #1815 from wallabag/v1-prepare-v2
Add message on unread page about v2
2016-03-28 10:52:41 +02:00
4ea9cf5c60 Add message on unread page about v2 2016-03-24 14:28:22 +01:00
f744ca2799 Merge pull request #1588 from juanjobe/dev
Add caffereggio.net
2016-01-17 20:42:34 +01:00
9c0f0ec5c5 Merge remote-tracking branch 'upstream/dev' into dev 2016-01-17 19:31:49 +01:00
23aed1cd4c Add caffereggio.net 2016-01-17 18:49:17 +01:00
e462972e18 Merge pull request #1582 from simark/patch-2
Fix grammatical typo
2016-01-15 14:08:51 +01:00
4f158d9450 Fix grammatical typo 2016-01-15 08:05:40 -05:00
60818ad38f Merge pull request #1535 from juanjobe/dev
Add popehat.com
2015-12-24 08:38:59 +01:00
04b64c9d49 Add popehat.com 2015-12-21 22:38:19 +01:00
0d4a5a882c Merge pull request #1530 from juanjobe/dev
Modified blog.cloudflare.com
2015-12-09 18:45:16 +01:00
086bf93f2b Modified blog.cloudflare.com 2015-12-09 18:09:34 +01:00
33f04e5b65 Merge pull request #1526 from juanjobe/dev
Add letraslibres and lawfareblog
2015-12-07 15:28:50 +01:00
d536b6d9b7 Add letraslibres.com 2015-12-07 14:54:15 +01:00
4715490858 Add lawfareblog.com 2015-12-07 14:53:53 +01:00
81e8d4f6dd Merge pull request #1489 from juanjobe/dev
Correction to naiz.eus
2015-10-15 15:47:37 +02:00
0d2d2e76ae Correction to naiz.eus 2015-10-14 23:24:36 +02:00
385fbdeefa Merge pull request #1486 from juanjobe/dev
Corrections to chronicle.com
2015-10-14 21:04:02 +02:00
5f3e7cb44b Corrections to chronicle.com 2015-10-14 20:51:05 +02:00
4e7c5db84a Merge pull request #1483 from alkahan/dev
Fix Content-Disposition header
2015-10-13 18:53:02 +02:00
2294c071a3 fix Content-Disposition header 2015-10-13 18:13:26 +02:00
f3192fc1d9 Merge pull request #1466 from juanjobe/dev
Add three new sites
2015-10-07 09:42:39 +02:00
7872097228 Add rasgolatente.es 2015-10-06 18:53:38 +02:00
692d1aae30 Add rasgolatente.es 2015-10-06 18:45:57 +02:00
2152c87079 Add thenews.coop 2015-10-06 18:45:43 +02:00
13cbfe313e Add pieria.co.uk 2015-10-06 18:45:26 +02:00
3bbbdf86fe Merge pull request #1460 from juanjobe/dev
Add aclu.org
2015-10-05 22:32:54 +02:00
465d18cc64 Add aclu.org 2015-10-05 22:17:26 +02:00
da896db3e7 Merge pull request #1455 from juanjobe/dev
Add diagonalperiodico.net
2015-10-04 21:44:29 +02:00
84d62811e2 Add diagonalperiodico.net 2015-10-04 21:36:39 +02:00
f5fb8197b4 Merge pull request #1451 from juanjobe/dev
Add wired.de site config
2015-10-04 08:23:16 +02:00
d60ae41af9 Add bez.es 2015-10-03 20:25:27 +02:00
bd5cfe87d4 Add Deia.com 2015-10-03 19:37:40 +02:00
2aab9e5ca9 Add esglobal.org 2015-10-03 17:16:17 +02:00
baa3184f42 Add Gara to wallabag 2015-10-03 17:05:12 +02:00
5ae298b11f Add wired.de site config 2015-10-03 16:46:34 +02:00
aad220cc39 Merge pull request #1450 from juanjobe/dev
Add support to timeshighereducation.com
2015-10-03 14:48:06 +02:00
62fec3cd16 Add support to timeshighereducation.com 2015-10-03 14:39:22 +02:00
5d49f06220 Merge pull request #1415 from sridharrajs/patch-1
Update CONTRIBUTING.md
2015-09-11 18:09:32 +02:00
7752f89441 Update CONTRIBUTING.md
Corrected typo "dedicaced" to "dedicated"
2015-09-11 21:21:03 +05:30
f716cdab07 Merge pull request #1318 from ticoombs/dev
Update Useragent to Win8.1 and FF36
2015-08-12 09:14:01 +02:00
48bce3074b Update Useragent to Win8.1 and FF36 2015-08-12 14:57:00 +10:00
5fce59bfd4 fix #1315 2015-08-11 10:53:15 +02:00
31680f5000 fix #564 on legacy 2015-08-08 20:56:56 +02:00
483090f1e1 Merge pull request #1301 from wallabag/fixFFSocial
Fix ff social
2015-08-08 20:55:03 +02:00
71d143a178 and another one 2015-08-08 20:53:05 +02:00
4b77a62f2a remove a console.log() call 2015-08-07 11:16:48 +02:00
31 changed files with 133 additions and 45 deletions

View File

@ -6,8 +6,8 @@ Please [open a new issue](https://github.com/wallabag/wallabag/issues/new).
To fix the bug quickly, we need some infos:
* your wallabag version (on top of the ./index.php file, and also on config page)
* your webserver installation :
* type of hosting (shared or dedicaced)
* in case of a dedicaced server, the server and OS used
* type of hosting (shared or dedicated)
* in case of a dedicated server, the server and OS used
* the php version used, eventually `phpinfo()`
* which storage system you choose at install (SQLite, MySQL/MariaDB or PostgreSQL)
* any problem on the `wallabag_compatibility_test.php` page
@ -27,4 +27,4 @@ Note : If you have large portions of text, use [Github's Gist service](https://g
## You want to fix a bug or to add a feature
Please fork wallabag and work with **the dev branch** only. **Do not work on master branch**.
[Don't forget to read our guidelines](https://github.com/wallabag/wallabag/blob/dev/GUIDELINES.md).
[Don't forget to read our guidelines](https://github.com/wallabag/wallabag/blob/dev/GUIDELINES.md).

View File

@ -569,7 +569,7 @@ class Zip {
if ($inline) {
$cd .= "inline";
} else{
$cd .= "attached";
$cd .= "attachment";
}
if ($fileName) {
$cd .= '; filename="' . $fileName . '"';

View File

@ -0,0 +1,5 @@
body: //div[@class='panel-panel panel-main-3 content-column']
title: //div[@class='panel-pane pane-node-title']
date: //div[@class='updated-date']
test_url: https://www.aclu.org/blog/free-future/chinas-nightmarish-citizen-scores-are-warning-americans

View File

@ -0,0 +1,5 @@
body: //div[@class='text_art']
strip: //div[@class='cab_datos_opinion']
strip: //div[@class='sumario2_left']
test_url: http://www.bez.es/382758623/otros-fracasos-empresas.html

View File

@ -1,9 +1,10 @@
# Instapaper gets this back to front and only gets the blog title instead of the article title.
title: substring-before(//title, '-')
title: //div[@class='title']
author: //a[ contains(@href, '/people') ]
body: //div[ @class='post' ]
body: //div[ @class='post-content' ]
# Date is impossible to retrieve since they use those stupid "fuzzy" dates, inserted through javascript, at posterous.
test_url: http://blog.cloudflare.com/understanding-analytics-when-is-a-page-view-n
test_url: http://blog.cloudflare.com/understanding-analytics-when-is-a-page-view-n
test_url: https://blog.cloudflare.com/sha-1-deprecation-no-browser-left-behind

View File

@ -0,0 +1,3 @@
body: //div[@class="pf-content"]
test_url: http://www.caffereggio.net/2016/01/16/115327/

View File

@ -1,17 +1,10 @@
title: //h1[contains(@class, "entry-title")]
author: //p[contains(@class, "byline")]
# blog articles (chronicle.com/blogs/*)
body: //div[contains(@class, "abstract")]
date: //p[contains(@class, "time")]
# all (?) other articles
body: //div[@id="article-body"]
body: //div[@class="content-item__story"]
date: //p[contains(@class, "dateline")]
# remove sidebars containing images (I assume this is desired for Instapaper)
strip: //div[@id="related"]
strip: //div[contains(@class, "image")]
# note that if you're not a Chronicle subscriber (personally or institutionally), you'll only see the first couple of paragraphs of the article, and Instapaper will display that with some crap above and below. thank goodness for that bookmarklet
test_url: http://chronicle.com/article/In-a-Land-of-Second-Chances/128375/
# note that if you're not a Chronicle subscriber (personally or institutionally), you'll only see the first couple of paragraphs of the article, and Instapaper $
test_url: http://chronicle.com/article/In-a-Land-of-Second-Chances/128375/
test_url: http://chronicle.com/blogs/wiredcampus/university-run-boot-camps-offer-students-marketable-skills-but-not-course-credit/57494

View File

@ -0,0 +1,4 @@
body: //div[@class='widget full_article']
strip: //div[@class='Herramientas']
test_url: http://www.deia.com/2015/10/03/politica/euskadi/el-envilecimiento-de-la-politica-y-de-los-medios-de-comunicacion

View File

@ -0,0 +1,4 @@
body: //div[@class='field__items']
title: //div[@class='art_titulo']
test_url: https://www.diagonalperiodico.net/global/27947-cuanto-mas-tiempo-nos-aferremos-este-sistema-peor-y-menores-seran-nuestras-opciones

View File

@ -0,0 +1,3 @@
body: //div[@class='blog-content']
test_url: http://www.esglobal.org/el-caos-en-el-este-los-socios-de-la-ue-necesitan-que-se-les-preste-atencion/

View File

@ -0,0 +1,4 @@
body: //div[@class='field-items']
title: //div[@class='title']
test_url: https://lawfareblog.com/limits-panopticon

View File

@ -0,0 +1,3 @@
single_page_link: concat(link[@rel="canonical"], "?page=full")
test_url: http://www.letraslibres.com/revista/dossier/quien-manda-en-europa

View File

@ -0,0 +1,4 @@
body: //div[contains(@class,'widget full_article')]
test_url: http://www.naiz.eus/eu/actualidad/noticia/20151002/adegi-afirma-que-los-jovenes-viven-una-vida-muy-comoda-y-no-tienen-hambre-para-emprender#
test_url: http://www.naiz.eus/eu/actualidad/noticia/20151012/podemos-euskadi-critica-que-otegi-y-sus-companeros-quieran-pasar-por-grandes-pacifistas

View File

@ -0,0 +1,3 @@
body: //div[@id='article']
test_url: http://www.pieria.co.uk/articles/need_a_fiscal_rule_george__try_get_the_economy_growing

View File

@ -0,0 +1,6 @@
title: //div[@class='entry-title']
author: //div[@class='entry-author']
date: //div[@class='entry-time']
body: //div[@class='entry-content']
test_url: https://popehat.com/2015/12/16/eric-posner-the-first-amendments-nemesis/

View File

@ -0,0 +1,6 @@
title: //div[@class='entry-title']
author: //div[@class='entry-author']
date: //div[@class='entry-time']
body: //div[@class='entry-content']
test_url: http://rasgolatente.es/estupidez-psicologia-estupidos/

View File

@ -0,0 +1,3 @@
body: //div[@class='entry-content']
test_url: http://www.thenews.coop/98221/news/co-operatives/jeremy-corbyn-needs-co-op-movement/

View File

@ -0,0 +1,3 @@
body: //div[@class="col-md-12 radix-layouts-contentheader panel-panel"]
strip: //div[@class="htmlContent subscribe_box"]
test_url: https://www.timeshighereducation.com/blog/jeremy-corbyn-serious-about-free-higher-education

View File

@ -0,0 +1,8 @@
title: //meta[@name='Title']/@content
author: //meta[@name='Author']/@content
date: //meta[@name='DisplayDate']/@content
body: //div[@class='article-content']
strip: //div[@class='article-sidebar']
test_url: https://www.wired.de/collection/latest/der-vw-skandal-zeigt-ohne-vertrauen-ist-software-nicht-mehr-als-bose-magie

View File

@ -190,7 +190,7 @@ class Poche
{
case 'add':
$content = Tools::getPageContent($url);
$title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : _('Untitled');
$title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : parse_url($url, PHP_URL_HOST);
$body = $content['rss']['channel']['item']['description'];
// clean content from prevent xss attack
@ -908,7 +908,7 @@ class Poche
$entries = $this->store->retrieveAllWithTags($this->user->getId());
if ($entries) {
echo $this->tpl->render('export.twig', array(
'export' => Tools::renderJson($entries),
'export' => Tools::renderJson(Tools::utf8ize($entries)),
));
Tools::logm('export view');
} else {

View File

@ -141,7 +141,7 @@ final class Tools
public static function getFile($url)
{
$timeout = 15;
$useragent = "Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0";
$useragent = "Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0";
if (in_array ('curl', get_loaded_extensions())) {
# Fetch feed from URL
@ -232,6 +232,27 @@ final class Tools
exit();
}
/**
* UTF-8 encode array of string
*
* @param $data
*/
public static function utf8ize($data)
{
if (is_array($data))
{
foreach ($data as $k => $v)
{
$data[$k] = self::utf8ize($v);
}
}
else if (is_string ($data) && '' == mb_detect_encoding($data))
{
return utf8_encode($data);
}
return $data;
}
/**
* Create new line in log file
*

View File

@ -8,7 +8,7 @@
* @license http://opensource.org/licenses/MIT see COPYING file
*/
define ('POCHE', '1.9.1');
define ('POCHE', '1.9.2');
require 'check_essentials.php';
require 'check_setup.php';
require_once 'inc/poche/global.inc.php';

View File

@ -704,7 +704,7 @@ php composer.phar install</code></pre>
<li><label for="mysql_password">Password</label> <input type="password" placeholder="p4ssw0rd" id="mysql_password" name="mysql_password" /></li>
<li><label for="mysql_utf8_mb4">Use UTF-8 MB4</label> <input id="mysql_utf8_mb4" type="checkbox" name="mysql_utf8_mb4">
<div id="utf8_mb4_infos"><em>Warning :</em> UTF-8 MB4 is used to fully support unicode characters. It is available only with MySQL starting with version 5.5.3.
Install will failed if you check this while using an older MySQL server.</div></li>
Install will fail if you check this while using an older MySQL server.</div></li>
</ul>
<?php } else { ?>
<div class="messages notice">

View File

@ -45,7 +45,6 @@
<script>
var baseurl = "{{ poche_url }}";
console.log(baseurl);
var data = {
"name": "wallabag",

View File

@ -1,3 +1,20 @@
.messages {
display: block;
clear: both;
width: 400px;
margin: 10px auto 10px;
padding: 10px 0;
-moz-border-radius: 4px;
border-radius: 4px;
}
.messages p {
margin: 3px 0 3px 10px !important;
padding: 0 10px 0 23px !important;
font-size: 14px;
line-height: 16px;
}
.messages.error.install {
border: 1px solid #c42608;
color: #c00 !important;
@ -16,4 +33,10 @@
border: 1px solid #6dc70c;
background: #e0fbcc !important;
text-align: left;
}
.messages.information,
.messages.info {
border: 1px solid #82aee7;
background: #dfebfb;
}

View File

@ -47,7 +47,7 @@
{{ nb_results }} {% trans "articles" %}
{% endif %}
{% if view == 'home' or view == 'fav' or view == 'archive' %}
<a href="?action=random&amp;view={{ view }}" class="icon icon-random"><span> {% trans "random" %}</span></a>{% endif %}
<a href="?action=random&amp;view={{ view }}" title="{% trans "random" %}" class="icon icon-random"><span> {% trans "random" %}</span></a>{% endif %}
</div>
{{ page_links | raw }}
</div>

View File

@ -113,14 +113,5 @@
// use keyboard to do actions
actionArticle('{{ entry.id|e }}');
// swipe to right or left on mobile to navigate
$('article').on("swiperight", function(){
goLeft('?view=view&id={{ navigate.nextid|e }}');
});
$('article').on("swipeleft", function(){
goRight('?view=view&id={{ navigate.previousid|e }}');
});
</script>
{% endblock %}

View File

@ -42,7 +42,6 @@
<script>
var baseurl = "{{ poche_url }}";
console.log(baseurl);
var data = {
"name": "wallabag",

View File

@ -1 +1,6 @@
{{ messages | raw }}
{{ messages | raw }}
{% if view == 'home' %}
<div class="messages information">
<p><a href="http://doc.wallabag.org">wallabag v2 is out, please read the documentation to upgrade.</a></p>
</div>
{% endif %}

View File

@ -52,7 +52,7 @@
{{ nb_results }} {% trans "articles" %}
{% endif %}
{% if view == 'home' or view == 'fav' or view == 'archive' %}
<a href="?action=random&amp;view={{ view }}" class="icon icon-random"><span> {% trans "random" %}</span></a>{% endif %}
<a href="?action=random&amp;view={{ view }}" title="{% trans "random" %}" class="icon icon-random"><span> {% trans "random" %}</span></a>{% endif %}
</div>
{{ page_links | raw }}
</div>

View File

@ -129,13 +129,5 @@
// Use left and right arrow to navigate on with keyboard
navigateKeyboard('?view=view&id={{ navigate.nextid|e }}','?view=view&id={{ navigate.previousid|e }}');
// swipe to right or left on mobile to navigate
$('article').on("swiperight", function(){
goLeft('?view=view&id={{ navigate.nextid|e }}');
});
$('article').on("swipeleft", function(){
goRight('?view=view&id={{ navigate.previousid|e }}');
});
</script>
{% endblock %}